Page 1 of 1

Need Help with News Module

Posted: Thu Feb 05, 2009 10:46 am
by claire
Hi,

I'm using the news module on my cms template.  The problem is, I want to change the link on the title e.g. 'work experience week' as my title to go to a web address instead of more information on the news module.  Is this possible and if so how do I do it? 

Thanks

Claire

Re: Need Help with News Module

Posted: Fri Feb 06, 2009 12:32 am
by crankshaft
You could do this in your summary template:

Code: Select all

{if isset($entry->extra)}
    <div class="NewsSummaryExtra">
		<a href='{$entry->extra}'>[More]</a>
	</div>
{else}
	<div class="NewsSummaryMorelink">
		[{$entry->morelink}]
	</div>
{/if}
and use the 'Extra' field for your URL link, I have done something similar.

But this won't work in the detail template as there's a small bug where the 'Extra' field is not passed to the module so it's needs a small modification to the action.detail.php page, the solution is here: http://forum.cmsmadesimple.org/index.ph ... 573.0.html.

Re: Need Help with News Module

Posted: Fri Feb 06, 2009 12:38 pm
by claire
Thanks, I will try that!!, just one question, how do I modify the php file I need to change?

Re: Need Help with News Module

Posted: Fri Feb 06, 2009 6:12 pm
by Dr.CSS
Look in the News admin and change templates there...