I have used a chronoform past three years, and this is the best Components that should be the default installation in Joomla.
I've been looking and studying the contents of this forum, and I still have not managed implementation on my form.
That why it's a very please to make it simple and easy tutorial, or if you can have pictures or video about it.
I want, how to keep Article Title (not url link) automatically written in one form is made. I load form by plugin form on each article, so each article title should be load automatic / dynamic on form as Field Default Value and user can remove anytime and change the default value.
I use the latest version of the Component form. Thanks for any help.
I've been looking and studying the contents of this forum, and I still have not managed implementation on my form.
That why it's a very please to make it simple and easy tutorial, or if you can have pictures or video about it.
I want, how to keep Article Title (not url link) automatically written in one form is made. I load form by plugin form on each article, so each article title should be load automatic / dynamic on form as Field Default Value and user can remove anytime and change the default value.
I use the latest version of the Component form. Thanks for any help.
Hi nyalakanmerahmu,
Please drag a Custom Code element into the On Load event, move it up before the Show HTML action and add this code
Now add a Hidden element to the Preview box and give it the name 'title'.
This will give you the page title rather than the document title but usually they are the same.
Bob
Please drag a Custom Code element into the On Load event, move it up before the Show HTML action and add this code
<?php
$doc =& JFactory::getDocument();
$form->data['title'] = $doc->getTitle();
?>
Now add a Hidden element to the Preview box and give it the name 'title'.
This will give you the page title rather than the document title but usually they are the same.
Bob
This topic is locked and no more replies can be posted.