Hi

I was wondering if anybody could help with removing the Terms & Add Comment from Teasers with an Artisteer generated template.

The code that generates the Terms & Add Comment for all Node types within node.tpl.php is:

 if (is_art_links_set($node->links) || !empty($terms)):
$output = art_node_worker($node); 
if (!empty($output)):	

endif; endif;

Any help greatly appreciated

Comments

pbarnett’s picture

Sure; you just need to stop that code fragment from being executed; a quick-and-dirty fix would be

<?php
if (0 and is_art_links_set($node->links) || !empty($terms)):
$output = art_node_worker($node);
if (!empty($output)):   
?>

<?php
echo $output;
?>

<?php
endif; endif;
?>

or just comment out the output bit -

<?php
if (is_art_links_set($node->links) || !empty($terms)):
$output = art_node_worker($node);
if (!empty($output)):   
?>

<?php
//echo $output;
?>

<?php
endif; endif;
?>

Pete.

apmac’s picture

Thanks Pete

But if I make those changes will that not remove my Terms from all nodes? The code snippet I provided is used for printing Terms to all nodes not just the teaser node.

Can I identify that its just the teaser that I would like it to not print to.

Cheers

pbarnett’s picture

To just remove the terms from the teaser, try this :-

<?php
if (!$teaser and is_art_links_set($node->links) || !empty($terms)):
$output = art_node_worker($node);
if (!empty($output)):  
?>
<?php
//echo $output;
?>

<?php
endif; endif;
?>

Pete.

apmac’s picture

The suggested solution didn't work for me.

Its like the artisteer theme is not recognising $teaser

Could this be because I am using the module CCK Teaser Field?

Thanks for any help.