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 eZ Publish, 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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 22:37:31
Script start
Timing: Jan 18 2025 22:37:31
Module start 'layout'
Timing: Jan 18 2025 22:37:31
Module start 'content'
Timing: Jan 18 2025 22:37:32
Module end 'content'
Timing: Jan 18 2025 22:37:32
Script end

Main resources:

Total runtime0.8690 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0087 587.8125152.6094
Module start 'layout' 0.00870.0036 740.421939.4141
Module start 'content' 0.01230.8552 779.8359535.2344
Module end 'content' 0.86750.0014 1,315.070312.1875
Script end 0.8689  1,327.2578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4334160.0002
Check MTime0.00160.1839160.0001
Mysql Total
Database connection0.00160.181810.0016
Mysqli_queries0.818994.2335540.0152
Looping result0.00060.0640520.0000
Template Total0.828795.420.4143
Template load0.00200.225220.0010
Template processing0.826795.135020.4134
Template load and register function0.00010.011610.0001
states
state_id_array0.00170.195610.0017
state_identifier_array0.00100.116420.0005
Override
Cache load0.00160.1835190.0001
Sytem overhead
Fetch class attribute can translate value0.00060.064120.0003
Fetch class attribute name0.00110.125040.0003
XML
Image XML parsing0.00110.125520.0005
class_abstraction
Instantiating content class attribute0.00000.000740.0000
General
dbfile0.00100.1199220.0000
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs