Betreff: News: Keine Titel wenn Anzeige nach Themen von 25cent am 04.08.2008 12:39:47
Das News Modul scheint mir nicht gut gesonnen zu sein. Nach dem ich nun einen Editor endlich zum laufen gebracht habe, stehe ich vor dem nächsten Problem. Konnte weder hier noch auf xoops.org was finden.
Wenn ich die Artikel nach Themen anzeigen lasse, erscheint als Überschrift die Kategorie, aber nicht der Titel des Artikels. Statt dessen nur ein Doppelpunkt ":" Die Variable <{$story.news_title}> hatte ich in der Datei news_by_topic.html gesetzt, wird aber nicht erkannt.Bei der Variable <{$story.title}> erscheint über den Artikel die Überschrift des vorigen Artikels
Hier die news_by_topic.html
<div class="item">
<table width='100%' border='0'>
<tr>
<{section name=i loop=$columns}>
<td width="<{$columnwidth}>%" valign="top">
<{foreach item=topic from=$columns[i]}>
<div class="itemBody">
<div class="itemInfo"><span class="itemText"><a href="<{$xoops_url}>/modules/news/index.php?storytopic=<{$topic.id}>"><{$topic.title}></a></span></div>
<{counter start=0 print=false assign=storynum}>
<{foreach item=story from=$topic.stories}>
<{if $storynum == 0}>
<{include file="db:news_item.html" story=$story}><br />
<{else}>
<{if $storynum == 1}>
<ul>
<{/if}>
<li><a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$story.id}>"><{$story.title}></a> (<{$story.posttime}>)</li>
<{/if}>
<{counter}>
<{/foreach}>
<{if $storynum > 1}>
</ul>
<a href="<{$xoops_url}>/modules/news/index.php?storytopic=<{$topic.id}>"><{$lang_morereleases}><{$topic.title}></a>
<{/if}>
</div><br />
<{/foreach}>
</td>
<{/section}>
</tr>
</table>
</div>
<{include file='db:system_notification_select.html'}>
Und hier die news_item.html
<table cellpadding="0" cellspacing="0">
<tr>
<td>
<table cellpadding="0" cellspacing="0" width="98%">
<tr>
<td>
<span h2 class="gensmall">
<a href="<{$xoops_url}>/modules/news/index.php?storytopic=<{$story.topicid}>"><{$story.topic_title}> : <strong><{$story.news_title}></strong>
</h2>
</span> </td>
</tr>
<tr>
<td><{if $story.files_attached}><{$story.attached_link}><{/if}><{if $story.poster != ''}><span class="genmed"><{$lang_postedby}></span><span class="genmed"> <{$story.poster}></span><{/if}> <span class="genmed"><{$lang_on}> <{$story.posttime}></span> (<span class="genmed"><{$story.hits}> <{$lang_reads}></span>) <{$news_by_the_same_author_link}></td>
</tr>
<tr>
<td class="itemBody"><{$story.imglink}><p class="itemText"><{$story.text}></p></td>
</tr>
<tr>
<td ><span class="itemAdminLink"><{$story.adminlink}></span><{if $rates}><b><{$lang_ratingc}></b> <{$story.rating}> (<{$story.votes}>) - <a href="<{$xoops_url}>/modules/news/ratenews.php?storyid=<{$story.id}>" rel="nofollow"><{$lang_ratethisnews}></a> - <{/if}><span class="itemPermaLink"><{$story.morelink}></span></td>
</tr>
</table>
</td>
</tr>
</table><br />
|