{title help="Feeds"}{tr}External Feeds{/tr}{/title} {remarksbox type="tip" title="{tr}Tips{/tr}"} {tr}This page is to configure settings of external feeds read/imported by Tiki. To generate/export feeds, look for "Feeds" on the admin panel, or{/tr} {tr}Click Here{/tr}.
{tr}To use feeds in a text area (Wiki page, etc), a module or a template, use {literal}{rss id=x}{/literal}, where x is the ID of the feed.{/tr} {tr}To use them to generate articles, use the Article generator for that specific feed{/tr}. {/remarksbox} {if $preview eq 'y'} {remarksbox type="info" title="{tr}Content for the feed{/tr}"} {if $feedtitle ne ''}

{$feedtitle.title|escape}

{/if} {/remarksbox} {/if} {tabset name="admin_rssmodules"} {tab name="{tr}External Feeds{/tr}"} {if isset($channels) && $channels|count > 0}
{ticket}
{/if}

{tr}External Feeds{/tr}

{if $channels or ($find ne '')} {include file='find.tpl'} {/if} {section name=chan loop=$channels} {sectionelse} {norecords _colspan=6} {/section}
{self_link _sort_arg='sort_mode' _sort_field='rssId'}{tr}ID{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='name'}{tr}Name{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='lastUpdated'}{tr}Last update{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='showTitle'}{tr}Show Title{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='showPubDate'}{tr}Show Date{/tr}{/self_link}
{$channels[chan].rssId|escape} {$channels[chan].name|escape} {if $channels[chan].description}{$channels[chan].description|escape|nl2br}
{/if} {tr}Site:{/tr} {$channels[chan].sitetitle|escape}
{tr}Feed:{/tr} {$channels[chan].url|truncate:50:"...":true}
{if $channels[chan].lastUpdated eq '1000000'}{tr}Never{/tr}{else}{$channels[chan].lastUpdated|tiki_short_datetime}{/if} {tr}Refresh rate:{/tr} {$channels[chan].refresh|duration} {$channels[chan].showTitle|escape} {$channels[chan].showPubDate|escape} {actions} {strip} {icon name="rss" _menu_text='y' _menu_icon='y' alt="{tr}View{/tr}"}
{ticket}
{icon name='edit' _menu_text='y' _menu_icon='y' alt="{tr}Edit{/tr}"} {if $prefs.feature_articles eq 'y'} {icon name='textfile' _menu_text='y' _menu_icon='y' alt="{tr}Article generator{/tr}"} {/if}
{ticket}
{icon name='remove' _menu_text='y' _menu_icon='y' alt="{tr}Remove{/tr}"} {/strip} {/actions}
{pagination_links cant=$cant step=$maxRecords offset=$offset}{/pagination_links}
{/tab} {if $rssId > 0} {assign var="feedEditLabel" value="{tr}Edit Feed{/tr}"} {else} {assign var="feedEditLabel" value="{tr}Create Feed{/tr}"} {/if} {tab name=$feedEditLabel}

{$feedEditLabel} {if $rssId > 0} {$name|escape}

{button href="tiki-admin_rssmodules.php" cookietab="2" _keepall="y" _icon_name="create" _text="{tr}Create new external feed{/tr}"} {else} {/if}
{ticket}
{/tab} {if $articleConfig} {tab name="{tr}Article Generator{/tr}"}

{tr _0='"'|cat:$articleConfig.feed_name|cat:'"'|escape}Article Generator for %0{/tr}

{remarksbox type="tip" title="{tr}Tips{/tr}"} {tr}Once you have defined the settings below, each new item in this rss feed will generate a new article{/tr}. {icon name="help"}
{tr}You can enable Show source for the article type (hidden by default), to allow users to read the full content{/tr}. {/remarksbox}
{ticket}
{if $prefs.feature_submissions eq 'y'}
{/if}
{tr}days{/tr}
{tr}minutes{/tr}
{tr}Enter -1 to use original publishing date from the feed{/tr}
{tr}Default Settings{/tr}
{if $prefs.feature_multilingual eq 'y'}
{/if}
{tr}Custom Settings for Source Categories{/tr} {if !$sourcecats}

{tr}No source categories detected for this feed{/tr}

{else} {foreach $sourcecats as $sourcecat => $settings} {/foreach}
{tr}Source Category{/tr} {tr}Type{/tr} {tr}Topic{/tr} {tr}Rating{/tr} {tr}Priority (10 is highest){/tr}
{$sourcecat|escape}
{/if}
{tr}Categorize Created Articles{/tr}
{include file='categorize.tpl'}
{/tab} {/if} {/tabset}