MyXoops Forum

Re: Top News, Themenbild [Module für News und Content] - myXOOPS German Support

mcleines

"myXOOPs"-Master
Gepostet am:06.04.2007 11:00
mcleines
mcleines Offline (Show more)
"myXOOPs"-Master
Posts: 1627
Since: 05.10.2004
#2

Re: Top News, Themenbild

<table width="100%">
<tr>
<td>
<{if $block.spotlight.image == ""}><img src='<{$block.spotlight.topic_image}>' alt='' hspace="3" border='0' align="left" />
<{/if}>
<font color="#FF6600">
<b><{$block.spotlight.title}></b></font><br /> <br />
<{$block.spotlight.image}><{$block.spotlight.text}><{if $block.spotlight.read_more}> &nbsp;&nbsp;&nbsp; <a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$block.spotlight.id}>"><{$block.lang_read_more}></a>
&nbsp;&nbsp;&nbsp; <{/if}>
</td>
</tr>
</table>

Peter

"myXOOPs"-Neuling
Gepostet am:05.04.2007 16:47
Peter
Peter Offline (Show more)
"myXOOPs"-Neuling
Posts: 17
Since: 08.01.2007
#1

Top News, Themenbild

Hi,
Das template zum topnews block sieht ja wie folgt aus:

<table width="100%">
<tr>
<td>
<img src='<{$block.spotlight.topic_image}>' alt='' hspace="3" border='0' align="left">
<font color="#FF6600">
<b><{$block.spotlight.title}></b></font><br /> <br />
<{$block.spotlight.image}><{$block.spotlight.text}><{if $block.spotlight.read_more}> &nbsp;&nbsp;&nbsp; <a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$block.spotlight.id}>"><{$block.lang_read_more}></a>
&nbsp;&nbsp;&nbsp; <{/if}>
</td>
</tr>
</table>


Wie bekomme ich es hin, dass
{$block.spotlight.topic_image}
nur dann geladen wird, wenn {$block.spotlight.image}
leer ist? Ich kenne die "if" Syntax der templatesprache noch nicht so.

Danke für eure Hilfe.
Gruss Peter
Diesen Thread durchsuchen:  1 Anonyme Benutzer

Aktuell aus dem Forum

Forum Thema Antworten Views Letzter Beitrag
Modulentwicklung New Xoops Xcreate Module 0 5324 26.11.2025 15:22
efkan Gehe zum letzten Beitrag
Modulentwicklung XOOPS Custom Field Module 1 1813 24.11.2025 11:21
Goffy Gehe zum letzten Beitrag