Forums / Developer / Create user full URI

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

Create user full URI

Author Message

laurent le cadet

Thursday 11 October 2007 12:17:17 am

Hi,

I would like to render the full URI to create a new user.

The purpose is to avoid the regular form in a template...

<form method="post" action={"content/action"|ezurl}>
<input type="hidden" name="ContentLanguageCode" value="{ezini( 'RegionalSettings', 'Locale' , 'site.ini')}" />
<input type="hidden" name="ClassIdentifier" value="visiteur" />
<input type="hidden" name="NodeID" value="11272" />
<input class="button" type="submit" name="NewButton" value="More infos" />
</form>

...and use a redirection (thanks to Esben Visfeldt extension):
{redirectrelative( '<relative URI>' )}

Any help?

Laurent

Damien Pobel

Thursday 11 October 2007 4:52:00 am

Hi Laurent,

By default, to create an object in Exponential, you must post data through a form.
What's wrong, with the form ? the button ?
If it's the case, you can use something like :

<form method="post" action={"content/action"|ezurl} id="createUserForm">
  <input type="hidden" name="ContentLanguageCode" value="{ezini( 'RegionalSettings', 'Locale' , 'site.ini')}" />
  <input type="hidden" name="ClassIdentifier" value="visiteur" />
  <input type="hidden" name="NodeID" value="11272" />
  <input type="hidden" name="NewButton" value="1" />
  <a href="javascript:document.getElementById('createUserForm').submit();">Créer un utilisateur</a>
</form>

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish