Excellent! Thanks for the pointer GreyHead. And i thought i had searched through every page, well except that one.🙂
Ok, so the form is up, im publishing to the #__content and emails are flying through. nice!
I replaced the editor with a text field and used 2 drop downs for [Sections] and [Categories] in the form, positioned neatly.
Category dropdown does exactly what it says on the tin, it shows a list of categories. Im happy with that.
Sections however 😟 i can only display a fixed variable in the drop down . e.g. this code taken from your forum shows a cat with ID 1
<div>
<label class="cf_label">Location:</label>
<?php
echo JHTML::_('list.section', 'field_name');
?>
</br>
<?php
echo JHTML::_('list.category', 'field_name', '1');
?>
</div>
The problem i have is to do with that '1');. Id like to relate the categories in my second drop down to the section i have chosen in the first drop down. I read the 2 things you must do to on the 'submitcontent.cfbak' landing page however i didnt quite understand the 'onsubmit()' thing i should do to hold the values of Sections and categories or if this is what i need to do? I would appreciate a little pointer to get this working. its soooo close😀
I have tried replacing the '1' with 'section_id' This did not list anything other than 'select category'
The other problem i have is. If you select a selection from the drop down it does not publish this information. It will only publish the title, content, alias name etc. How do you make sure the selection im picking (likewise with the category, when its working) sticks to the _content table in my Database.
thanks in advance
Camastr