AAAAwww/administrator/components/com_chronoforms/form_actions/submit_article/submit_article.ctp 0000604 00000010215 15146607357 0031612 0 ustar 00 home/academiac
Header(array('fields' => 'Fields', 'settings' => 'Settings', 'help' => 'Help'), 'submit_article_config_{n}'); ?>
tabStart('fields'); ?>
input('action_submit_article_{n}_title_config', array('type' => 'text', 'label' => "Article Title Field", 'class' => 'medium_input', 'smalldesc' => "The field name which will hold the article's title.")); ?>
input('action_submit_article_{n}_fulltext_config', array('type' => 'text', 'label' => "Full Text Field", 'class' => 'medium_input', 'smalldesc' => "The field name which will hold the article's full text.")); ?>
input('action_submit_article_{n}_introtext_config', array('type' => 'text', 'label' => "Intro Text Field", 'class' => 'medium_input', 'smalldesc' => "The field name which will hold the article's intro text.")); ?>
input('action_submit_article_{n}_created_by_alias_config', array('type' => 'text', 'label' => "Author Alias Field", 'class' => 'medium_input', 'smalldesc' => "The field name which will hold the Author's alias name.")); ?>
tabEnd(); ?>
tabStart('settings'); ?>
input('action_submit_article_{n}_state_config', array('type' => 'select', 'label' => 'Published ?', 'options' => array(0 => 'No', 1 => 'Yes'), 'smalldesc' => 'If enabled it will set the article status to published.')); ?>
setQuery($query);
$options = array();
$cats = $database->loadObjectList();
foreach($cats as $cat){
$options[$cat->id] = $cat->title;
}
?>
input('action_submit_article_{n}_catid_config', array('type' => 'select', 'label' => 'Category', 'options' => $options, 'empty' => " - ", 'class' => 'medium_input', 'smalldesc' => "Select the article's category.")); ?>
tabEnd(); ?>
tabStart('help'); ?>
- This plugin will Save a new article to the content table in your Joomla database.
tabEnd(); ?>