{/foreach}
G G NewsdetailSample{* set a canonical variable that can be used in the head section if process_whole_template is false in the config.php *}
{if isset($entry->canonical)}
{assign var='canonical' value=$entry->canonical}
{/if}
{if $entry->postdate}
{if $field->type == 'file'}
{* this template assumes that every file uploaded is an image of some sort, because News doesn't distinguish *}
{else}
{$field->name}: {eval var=$field->value}
{/if}
{/foreach}
{/if}
G G News
formSample{* original form template *}
{if isset($error)}
{$error}
{else}
{if isset($message)}
{$message}
{/if}
{/if}
{$startform}
*{$titletext}:
{$inputtitle}
{$categorytext}:
{$inputcategory}
{if !isset($hide_summary_field) or $hide_summary_field == 0}
" times=$node.depth-1}
{/if}G G 5 Newsemail_template
A new news article has been posted to your website. The details are as follows:
Title: {$title}
IP Address: {$ipaddress}
Summary: {$summary|strip_tags}
Post Date: {$postdate|date_format}
Start Date: {$startdate|date_format}
End Date: {$enddate|date_format}
G G Printinglinktemplate{if isset($imgsrc)}
{capture assign='image'}
{/capture}
{$image}
{else}
{$image}{$linktext}
{/if}
G G z Printing
printtemplateO
Printing {title}
{stylesheet media='print' templateid=$templateid}
{if $overridestylesheet!=''}
{/if}
{$content}
{$printscript}
G G F Printingpdftemplate
{$title}
{$content}
G G Search
displaysearch{$startform}
{if isset($hidden)}{$hidden}{/if}
{$endform}G G } Search
displayresultT
{*
You can also instantiate custom behaviour on a module by module basis by looking at
the $entry->module and $entry->modulerecord fields in $entry
ie: {if $entry->module == 'News'}{News action='detail' article_id=$entry->modulerecord detailpage='News'}
*}
{/foreach}