Thursday 01 March 2007 6:53:14 am
Hi to everybody, I'm trying to insert "edit" button and "create new" button directly on the web site view of my site, because I want to edit the pages dirctly from my site. Edit button seems to work well but nothing with the button to create a new page(folder class). To do this I customized the template full.tpl when it shows content of folder class and I'm trying to insert code like this:
"edit" button:
<form method="post" action={concat("content/edit/",$node.contentobject_id,"/f/")|ezurl}>
<input class="button" type="submit" name="editButton" value="edit page" /> </form>
"create new" button:
<form method="post" action={"content/action/"|ezurl}>
<input type="hidden" name="ContentLanguageCode" value="eng-GB" />
<input type="hidden" name="ContentObjectLanguageCode" value="eng-GB" />
<input class="button" type="submit" name="NewButton" value="new page" />
<input type="hidden" name="ClassID" value="Folder" />
<input type="hidden" name="NodeID" value="{$node.node_id}" / </form> what is wrong??? ,-(
thanks to everybody Luca
|