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

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 02:01:28
Script start
Timing: Jan 18 2025 02:01:28
Module start 'layout'
Timing: Jan 18 2025 02:01:28
Module start 'content'
Timing: Jan 18 2025 02:01:29
Module end 'content'
Timing: Jan 18 2025 02:01:29
Script end

Main resources:

Total runtime1.1466 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 592.1641152.6094
Module start 'layout' 0.00640.0040 744.773439.4219
Module start 'content' 0.01041.1346 784.1953532.6641
Module end 'content' 1.14510.0015 1,316.85948.1875
Script end 1.1466  1,325.0469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.3518160.0003
Check MTime0.00150.1301160.0001
Mysql Total
Database connection0.00090.076610.0009
Mysqli_queries1.096795.6473600.0183
Looping result0.00070.0588580.0000
Template Total1.109096.720.5545
Template load0.00210.185220.0011
Template processing1.106996.535020.5534
Template load and register function0.00020.013510.0002
states
state_id_array0.00120.107310.0012
state_identifier_array0.00150.129420.0007
Override
Cache load0.00180.1562250.0001
Sytem overhead
Fetch class attribute can translate value0.00050.043630.0002
Fetch class attribute name0.00120.101130.0004
XML
Image XML parsing0.00030.027530.0001
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00110.1001100.0001
String conversion0.00000.001240.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.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: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs