Forums / Developer / edit and create new buttons ...

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

edit and create new buttons ...

Author Message

luca maroni

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

luca maroni

Wednesday 07 March 2007 2:03:07 am

the error was that I was filling the ClassID with the name of the class and not the ID number. So now it's working!

I solved because I found a very nice article in documentation about that:
http://ez.no/Exponential/documentation/customization/tips_tricks/editing_creating_and_removing_content_from_the_user_page

Thanks to all and sorry for my simple question :-)

Ciao
Luca