xoops forums

hal9000

Just popping in
Posted on: 2005/10/12 13:18
hal9000
hal9000 (Show more)
Just popping in
Posts: 60
Since: 2003/8/6 9
#1

smarty $code and removing the news item title

ok tried to squeeze it all in the title so now i will explain.
2 things
is there a list of XOOPS smarty block code?
by that i mean the $ values used in theme layout - if this is the correct term? i have found some on the smarty faq page but it doesn't seem XOOPS like.

and

i want to remove the subject from a news item so it just gives the actual news item headline.

eg
Xoops: Yet another XOOPS theme
becomes
Yet another XOOPS theme

i think it relates to <{$story.title}> in the news_item.html but what would i change it to as removing that surely would remove the who title and i just want to get rid of the subject?

thanks in advance

hal9000

red_Slider

Quite a regular
Posted on: 2006/9/1 15:05
red_Slider
red_Slider (Show more)
Quite a regular
Posts: 248
Since: 2006/1/4 1
#2

Re: smarty $code and removing the news item title

the same problem :(

and here it is:
https://xoops.org/modules/newbb/viewto ... id=174229#forumpost174229

editet 4 last time:

solution:
replace (in template news_item.html) string: story.title
into
story.news_title

Quote:
<table cellpadding="0" cellspacing="0" class="item">
<tr>
<td>
<table cellpadding="0" cellspacing="0" width="98%">
<tr>
<td class="itemHead"><{$story.news_title}><span class="itemTitle"></span></td>
</tr>
<tr>
<td class="itemInfo"><{if $story.files_attached}><{$story.attached_link}>&nbsp;<{/if}><{if $story.poster != ''}><span class="itemPoster"><{$lang_postedby}> <{$story.poster}></span><{/if}> <span class="itemPostDate"><{$lang_on}> <{$story.posttime}></span><{$news_by_the_same_author_link}></td>
</tr>
<tr>
<td><div class="itemBody"><{$story.imglink}><p class="itemText"><{$story.text}></p></div></td>
</tr>
<tr>
<td class="itemFoot"><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><br /><br />
</table>