0

从主页指示器中隐藏故事内容 (#116) 10 小时前 storycontent 讨论大家好,我想从主页和类别索引中隐藏故事内容,但是当访问者单击讨论时,故事内容应该在那里。我怎么能做到这一点,但我尝试过,但故事内容无处不在。

请帮忙,谢谢帮助

4

1 回答 1

0

编辑文件: 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来仅在故事页面以外的页面上显示摘要。

于 2014-12-23T00:31:09.397 回答