Thanks AshDigg. That works. Now I am trying to decide for the site I'm building whether i would be better off modifying libs/link.php so that separate smarty variables are always created for the truncated summary and the full story. This would allow me to decide in link_summary.tpl on a case by case basis how i want to display the story. Is there any reason why i shouldn't do it this way? (performance, dependencies etc ?)
This is what I'm thinking of doing ...
libs/link.php
replace lines 366 to 375 with ...
Code:
$smarty->assign('story_content', $this->content);
if($this->link_summary == "")
$smarty->assign('story_content_summary', $this->truncate_content());
else
$smarty->assign('story_content_summary', $this->link_summary);
in link_summary.tpl Code:
{if $pagename eq"story"}{$story_content}{else}{$story_content_summary}{/if}
The link_summary.tpl logic above could be easily modified to display the story in any way. (ie: it would be easy to show a summary on all pages with a thickbox link to display the full content.)
What do you think?