Closed (won't fix)
Project:
Similar By Terms
Version:
6.x-1.18
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Feb 2009 at 23:57 UTC
Updated:
5 Jul 2011 at 00:38 UTC
When I select "Display titles and teaser" it shows the title as a link and the body field, but not what I have setup as the teaser in my .tpl.php. The code I have in my template is
<?php if ($teaser == 1) { ?>
<?php print $node->field_photo[0]['view'] ?>
<div class="views-field-title"><span class="field-content"><a href="<?php print $node_url ?>"><?php print $title; ?></a></span></div>
<?php } else { ?>
...which works fine to show the teaser (photo with the title and link under it) in views, taxonomy pages, etc, but it's not being used with Similar By Terms. Am I misunderstanding how this feature works? Ideally it would just show the teasers rather than making a bulleted list out of them using this option since the title is included in the teaser template. Any thoughts appreciated.
Comments
Comment #1
rmiddle commentedThe teaser option is there for someone who doesn't want to override the template. I pass the entire node to similarterms.tpl.php. Just copy similarterms.tpl.php from the module folder to your template folder and change that. It should be documented well enough for you to figure out what to change.
Thanks
Robert
Comment #2
rmiddle commentedComment #3
troybthompson commentedWorks great. Thanks! I was just confused by the word "teaser" in the option not meaning the actual teaser output.
Comment #4
rmiddle commentedI guess I need to update the wording a little to mean display the teaser text of the nodes.
Thanks
Robert
Comment #6
giorgio79 commentedHello Robert,
Mind if I turn this into a feature request instead of a bug report? :) I was facing this issue for a while, as to why similarbyterms wont use my contemplate teaser... :)
Comment #7
rmiddle commented1.x branch is closed now.
Thanks
Robert