Page 1 of 1

[Solved] Custom Fields in News Module

Posted: Fri Jan 11, 2008 11:49 am
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

Re: [Solved] Custom Fields in News Module

Posted: Fri Jan 11, 2008 1:34 pm
by Richardo P
Silly me,

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