Forums / Developer / Link for new object

"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".

Link for new object

Author Message

Sao Tavi

Monday 20 June 2011 8:29:43 am

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.

Romain Bremaud

Monday 20 June 2011 8:57:37 am

Hi,

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

Visit this link : http://ezpedia.org/pt/project/powercontent 

Romain

Romain Bremaud
Les clefs du net

Amine BETARI

Tuesday 21 June 2011 6:49:20 am

Hello,
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)
</from>

 

 

Merci bien