Need Help with News Module

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
claire
Forum Members
Forum Members
Posts: 13
Joined: Wed Oct 22, 2008 2:45 pm

Need Help with News Module

Post 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
crankshaft
Forum Members
Forum Members
Posts: 57
Joined: Sun Mar 25, 2007 7:42 am

Re: Need Help with News Module

Post 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.
claire
Forum Members
Forum Members
Posts: 13
Joined: Wed Oct 22, 2008 2:45 pm

Re: Need Help with News Module

Post by claire »

Thanks, I will try that!!, just one question, how do I modify the php file I need to change?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Need Help with News Module

Post by Dr.CSS »

Look in the News admin and change templates there...
Post Reply

Return to “CMSMS Core”