Links in teaser
Muskwa - September 26, 2007 - 20:45
| Project: | Czech & Slovak Social Networks |
| Version: | 5.x-1.4 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hi,
is it possible to add an option to show / not to show the links to social networks in a teaser? I am using views, contemplate module to modify teaser and I don't want to display links there. Is there any solution, please?
Thanks!

#1
I think you can do it in your template. Just edit node.tpl.php and do something like:
if ($page != 0) {...display $links...
}
#2
Thanks for such a prompt answer.
Please, could you help me with the code a little bit? I am trying to make it work, but I not a programmer...
Say, I have views-pages "http://example.com/view1" and "http://example.com/view2" in which I don't want to display the links. How could I write it to node.tpl.php?
I tried to modify this code in few ways but it never worked.
<?php if ($links) { ?><div class="links">» <?php print $links?></div><?php }; ?>Thanks a lot for your help :-)