I would like to create a form so my users can post articles but are limited to which categorys and sections they can choose. I would also like the article to be created as unpublished at first so I can look over it and publish it later. I only want them to insert text.
So basiclly I want my users to be able to post articles that I can see from back end of joomla but make the category, section and publishing decissions for them. The reason for this is that you have to make users editors in order to allow them to post and I don't want that plus Joomla only shows me articles in the back end that are saved in jos_content. Any suggestions?
Here is some code I was playing around with:
So basiclly I want my users to be able to post articles that I can see from back end of joomla but make the category, section and publishing decissions for them. The reason for this is that you have to make users editors in order to allow them to post and I don't want that plus Joomla only shows me articles in the back end that are saved in jos_content. Any suggestions?
Here is some code I was playing around with:
<div class="form_item"> <form action="http://blahblah.com/index.php?option=com_content&view=article&layout=form&Itemid=51" method="post" name="formElement" onSubmit="setgood();"> <div class="form_element cf_heading"> <h1 class="cf_text">Poem Submit Form</h1> </div> <div class="clear"> </div> </div> <div class="form_item"> <div class="form_element cf_radiobutton"> <label class="cf_label">Publishing</label> <div class="float_left"> <input value="1" class="radio validate-one-required" id="radio00" name="radio0" type="radio" /> <label for="radio00" class="radio_label">Yes</label> <br /> <input value="0" class="radio validate-one-required" id="radio01" name="radio0" type="radio" /> <label for="radio01" class="radio_label">No</label> <br /> </div> </div> <div class="clear"> </div> </div> <input value="0" id="hidden_2" name="frontpage" type="hidden" /> <input value="" id="hidden_3" name="alias" type="hidden" /> <input value="" id="hidden_4" name="ordering" type="hidden" /> <div class="form_item"> <div class="form_element cf_radiobutton"> <label class="cf_label">Access</label> <div class="float_left"> <input value="0" class="radio" id="radio10" name="radio1" type="radio" /> <label for="radio10" class="radio_label">Public</label> <br /> <input value="1" class="radio" id="radio11" name="radio1" type="radio" /> <label for="radio11" class="radio_label">Restricted</label> <br /> </div> <a class="tooltiplink" onclick="return false;"><img height="16" border="0" width="16" class="tooltipimg" src="components/com_chronocontact/css/images/tooltip.png"/></a> <div class="tooltipdiv">Access :: Choose if you would like only registered members to see your poem.</div> </div> <div class="clear"> </div> </div> <input value="5" id="hidden_5" name="sectionid" type="hidden" /> <input value="34" id="catid" name="catid" type="hidden" /> <div class="form_item"> <div class="form_element cf_textbox"> <label class="cf_label">Poetry Title</label> <input class="cf_inputbox required" maxlength="150" size="30" id="text_9" name="title" type="text" /> <a class="tooltiplink" onclick="return false;"><img height="16" border="0" width="16" class="tooltipimg" src="components/com_chronocontact/css/images/tooltip.png"/></a> <div class="tooltipdiv">Poetry Title :: Please name your poem</div> </div> <div class="clear"> </div> </div> <div class="form_item"> <div class="form_element cf_button"> <input value="Submit" type="submit" /><input type="reset" value="Reset"/> </div> <div class="clear"> </div> </div> <div class="form_item"> <div class="form_element cf_captcha"> <label class="cf_label">Please Verify The Following</label> <span>{imageverification}</span> </div> <div class="clear"> </div> </div> <div class="form_item"> <div class="form_element cf_textarea"> <label class="cf_label">Poem</label> <textarea class="cf_inputbox required" rows="50" id="text_12" cols="50" name="text"></textarea> </div> <div class="clear"> </div> </div>