1
hal9000
smarty $code and removing the news item title
  • 2005/10/12 13:18

  • hal9000

  • Just popping in

  • Posts: 60

  • Since: 2003/8/6 9


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

2
red_Slider
Re: smarty $code and removing the news item title

the same problem :(

and here it is:
https://xoops.org/modules/newbb/viewtopic.php?topic_id=39774&forum=28&post_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>

Login

Who's Online

87 user(s) are online (59 user(s) are browsing Support Forums)


Members: 0


Guests: 87


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits