[Solved] Custom Fields in 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
Richardo P
Forum Members
Forum Members
Posts: 33
Joined: Fri Aug 17, 2007 8:35 am

[Solved] Custom Fields in News Module

Post by Richardo P »

Hi again,

Using the news module I have added some custom fields to the news module.  I am now looking to make them appear on the front end.

I have added a few news items with the fields filled in, I assume the reason they aren't appearing is because I have to edit the news template to add the fields in.  How do I go about this?

The field I want to enter in is called:  AuthorEmail

I assume that i could just take a section of the code from the template, duplicate it and then just change the names to AuthorEmail, but so far I am having trouble getting it correct, or even finding any documentation on this.  I assume the code would be along the lines of:

Code: Select all

{if $entry->AuthorEmail}
	<div class="NewsSummaryEmail">
		{$authoremail_label} {$entry->authoremail}
	</div>
{/if}
but as I say, I'm not quit there yet...

Thanks in advance.

Richard
Last edited by Richardo P on Fri Jan 11, 2008 1:33 pm, edited 1 time in total.
Richardo P
Forum Members
Forum Members
Posts: 33
Joined: Fri Aug 17, 2007 8:35 am

Re: [Solved] Custom Fields in News Module

Post by Richardo P »

Silly me,

The Public Tic Box in the Edit Field Definition page was not ticked.  Hence they weren't showing
Post Reply

Return to “CMSMS Core”