PDA

View Full Version : Modifying the News Title in news module?


TrickyD
01-28-2008, 09:22 PM
How can I modify the News Title in the news module in CMPS v3.0 RC2?

I see the code

<if condition="!$mod_options['portal_news_legacy']">
<tr>
<td class="thead"><if condition="$mod_options['portal_news_showicon']">$vba_style[portal_blockbullet]</if><a href="$vboptions[bburl]/showthread.php?$session[sessionurl]t=$news[threadid]">$news[title]</a></td>
</tr>
</if>

in the newsbits template but I don't meet the if requirement.

How could I modify and / or alter the news item title?

TrickyD
01-28-2008, 10:59 PM
well I think I figured it out. I was looking in the wrong template.

For those interested

in module_wrapper

I modified the code to look like this

<!-- TrickyD changes the size of the news title -->
<if condition="$mods['modid'] == X"><span style="font-size:large">$mods[title]</span></if>

<if condition="$mods['modid'] != X">
<!-- /TrickyD changes the size of the news title -->

<span class="smallfont"><strong>$vba_style[portal_blockbullet] <if condition="$mods['link']"><a href="$mods[link]">$mods[title]</a><else />$mods[title]</if></strong></span>
<!-- TrickyD changes the size of the news title -->
</if>
<!-- /TrickyD changes the size of the news title -->

X is your Module ID

Works well enough for what I needed anyway.