This page in: English - Deutsch - Español - Français - Italiano - Lietuvių - Nederlands - Norsk - Polski - Русский - Svenska - Tiếng Việt - عربي - 日本語 简体中文
Contents |
Blog-Template
Hinweis: Dieses Template verwendet einen benutzerdefinierten Tag mit dem Namen "count_news_comments", den Sie hier finden.
Zusammenfassungs-Template
<!-- Start News Display Template --> {foreach from=$items item=entry} <div class="NewsSummary"> <h2 class="NewsSummaryLink">{$entry->titlelink}</h2> {if $entry->formatpostdate} <div class="NewsSummaryPostdate"> {$entry->formatpostdate} </div> {/if} {if $entry->summary} <div class="NewsSummarySummary"> {eval var=$entry->summary} </div> <div class="NewsSummaryMorelink"> [{$entry->morelink}] </div> {else if $entry->content} <div class="NewsSummaryContent"> {eval var=$entry->content} </div> {/if} <div style="border-top:1px solid black; margin-top:1em;"> {if $entry->author} <div class="NewsSummaryAuthor" style="float:left;"> Ertellt durch {$entry->authorname} in der Kategorie {$entry->category} </div> {/if} <div style="text-align:right;"><a href="{$entry->link}">{count_news_comments thenewsid=$entry->id} Kommentare</a></div> </div> </div> {/foreach} <!-- End News Display Template -->
Detail-Template
<h2 id="NewsPostDetailTitle">{$entry->title}</h2> {if $entry->formatpostdate} <div id="NewsPostDetailDate"> {$entry->formatpostdate} </div> {/if} {if $entry->summary} <div id="NewsPostDetailSummary"> <strong> {eval var=$entry->summary} </strong> </div> {/if} <div id="NewsPostDetailContent"> {eval var=$entry->content} </div> <div style="border-top:1px solid black; margin-top:1em;"> {if $entry->author} <div class="NewsSummaryAuthor" style="float:left;"> Erstellt durch {$entry->authorname} in der Kategorie {$entry->category} </div> {/if} <div style="text-align:right;"> <a href="{$entry->link}">{count_news_comments thenewsid=$entry->id} comments</a></div> </div> {cms_module module='comments' modulename='News' pageid=$entry->id websitefield=1 emailfield=1} <div id="NewsPostDetailPrintLink"> {$entry->printlink} </div> {if $return_url != ""} <div id="NewsPostDetailReturnLink">{$return_url}</div> {/if}
Autor: Elijah Lofgren
Aktuelle Blog-Enträge anzeigen
Erstellen Sie eine Datei modules/News/templates/recent_blog_posts.tpl mit folgendem Inhalt:
<ul> {foreach from=$items item=entry} <li><a href="{$entry->link}">{$entry->titlelink}</a> <br /> {if $entry->summary} {eval var=$entry->summary} {/if} <br /> {if $entry->formatpostdate} Posted {$entry->formatpostdate} {/if} in {$entry->category} - <a href="{$entry->link}">{count_news_comments thenewsid=$entry->id} Kommentare</a> </li> {/foreach} </ul>
Rufen Sie diese Datei wie folgt auf:
<h2>Die letzten 5 Blog-Einträge</h2> {cms_module module='news' number='5' summarytemplate='recent_blog_posts.tpl'}
Autor: Elijah Lofgren
This page in:
English -
Deutsch -
Español -
Français -
Italiano -
Lietuvių -
Nederlands -
Norsk -
Polski -
Česky -
Русский -
Svenska -
Tiếng Việt -
عربي -
日本語
简体中文