This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Developer » Link for new object

Link for new object

Link for new object

Monday 20 June 2011 5:29:43 pm - 2 replies

How can I create a generic link that will create a new object within the current one? I want to write such a link in the template, but I don't know how this link should look like.

Monday 20 June 2011 5:57:37 pm


If you want to create any object with a direct link you should use the powercontent extension 

Visit this link : 


Tuesday 21 June 2011 3:49:20 pm

I think that's how I understand your question
Here I offer users the ability to create a new object of class "Commentaire"



<form action={"content/action"|ezurl()} method="post">
    <input type="hidden" value="commentaire" name="ClassIdentifier"> / / we put in value the identifier of the class (1)
    <input type="hidden" value="{$node.node_id}" name="NodeID"> / / we put the id of the parent node (2)
    <input type="hidden" value="fre-FR" name="ContentLanguageCode"> / / we choose the language EN (3)
    <input type="submit" value="Nouveau Commentaire" name="NewButton" class="button new_commentaire"> / / I insist on the name NewButton (4)



Merci bien


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from