Publish/create offset

Author Message

Steph A

Thursday 27 October 2005 3:03:33 am

I was wondering if its possible to be in one folder, and then publish to another?

Lets say I have a folder called "My account" and under that one, a folder called "My objects". When the current user views "My objects" he can edit, remove and create new objects - owned by himself.

Now how can I define where the objects will be created - beacause I dont want it to be created under "My objects" - but to a predefined node.

Anyone know how?

Ɓukasz Serwatka

Thursday 27 October 2005 3:06:15 am

Hi you will need NodeID of place where you want to publish object.

Exampe code can look:

{*Create new article in News folder with nodeID 63*}
<form method="post" action={"content/action"|ezurl}>
	<input type="hidden" name="ClassID" value="2" />
	<input type="hidden" name="NodeID" value="63" />
	<input type="hidden" name="ViewMode" value="full" />
	<input class="button" type="submit" name="NewButton" value="Add article" />
</form>

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Steph A

Thursday 27 October 2005 3:24:27 am

Thank you - worked like a dream! ;)

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 19 2025 19:57:04
Script start
Timing: Jan 19 2025 19:57:04
Module start 'layout'
Timing: Jan 19 2025 19:57:04
Module start 'content'
Timing: Jan 19 2025 19:57:05
Module end 'content'
Timing: Jan 19 2025 19:57:05
Script end

Main resources:

Total runtime0.7265 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 590.1797152.6094
Module start 'layout' 0.00510.0023 742.789139.4141
Module start 'content' 0.00740.7176 782.2031533.5547
Module end 'content' 0.72500.0015 1,315.75788.1875
Script end 0.7265  1,323.9453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.4009160.0002
Check MTime0.00120.1668160.0001
Mysql Total
Database connection0.00080.112610.0008
Mysqli_queries0.679793.5533570.0119
Looping result0.00040.0576550.0000
Template Total0.692395.320.3462
Template load0.00170.235420.0009
Template processing0.690695.057520.3453
Template load and register function0.00010.012010.0001
states
state_id_array0.00090.127110.0009
state_identifier_array0.00190.256820.0009
Override
Cache load0.00140.1863140.0001
Sytem overhead
Fetch class attribute can translate value0.00040.060420.0002
Fetch class attribute name0.00070.098340.0002
XML
Image XML parsing0.00060.078920.0003
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00240.3332180.0001
String conversion0.00000.001040.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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs