从主页指示器中隐藏故事内容 (#116) 10 小时前 storycontent 讨论大家好,我想从主页和类别索引中隐藏故事内容,但是当访问者单击讨论时,故事内容应该在那里。我怎么能做到这一点,但我尝试过,但故事内容无处不在。
请帮忙,谢谢帮助
从主页指示器中隐藏故事内容 (#116) 10 小时前 storycontent 讨论大家好,我想从主页和类别索引中隐藏故事内容,但是当访问者单击讨论时,故事内容应该在那里。我怎么能做到这一点,但我尝试过,但故事内容无处不在。
请帮忙,谢谢帮助
编辑文件: templates\bootstrap\link_summary.tpl
寻找:
{if $pagename eq "story"}
{* The nl2br modifier will convert line breaks to <br> tags. http://www.smarty.net/docsv2/en/language.modifier.nl2br.tpl*}
{$story_content|nl2br}
{else}
{* The truncate modifier will cut off content after X characters. http://www.smarty.net/docsv2/en/language.modifier.truncate *}
{$story_content|nl2br}
{/if}
用。。。来代替:
{if $pagename eq "story"}
{* The nl2br modifier will convert line breaks to <br> tags. http://www.smarty.net/docsv2/en/language.modifier.nl2br.tpl*}
{$story_content|nl2br}
{/if}
看起来 Pligg 这里有一个错误,因为else
分支与分支相同if
。似乎他们打算truncate
在分支上使用 Smarty 的修饰符else
来仅在故事页面以外的页面上显示摘要。