Placement of content/edit

Author Message

Jon Arne Carsten

Thursday 28 April 2005 5:45:34 am

Hello

Can anyone help me with this problem.

I am working on giving my users the oppurtunity to upload news. I followed this tutorial:

http://ez.no/ez_publish/documentation/customization/tips_tricks/editing_creating_and_removing_content_from_the_user_page

Status now is that I am able to publish news, but I have to set the placement manually each time. This is not very userfriendly, and therefore I whas wondering how to set the placement to for example the news folder automaticly. Know this??

does it have something to do with the edit_placement.tpl?

Ɓukasz Serwatka

Friday 29 April 2005 5:28:37 am

Hi,

You need node_id of news folder and place it hidden filed in your <form>

<input type="hidden" name="NodeID" value="{NEWS_FOLDER.node_id}" />

This mean than new object will be creted under NEWS_FOLDER

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

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 01:21:53
Script start
Timing: Jan 19 2025 01:21:53
Module start 'layout'
Timing: Jan 19 2025 01:21:53
Module start 'content'
Timing: Jan 19 2025 01:21:54
Module end 'content'
Timing: Jan 19 2025 01:21:54
Script end

Main resources:

Total runtime1.0347 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.0093 589.1563152.6250
Module start 'layout' 0.00930.0044 741.781339.4453
Module start 'content' 0.01371.0193 781.2266530.3125
Module end 'content' 1.03300.0016 1,311.53918.1641
Script end 1.0346  1,319.7031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.3780160.0002
Check MTime0.00150.1408160.0001
Mysql Total
Database connection0.00150.142410.0015
Mysqli_queries0.982294.9308540.0182
Looping result0.00060.0574520.0000
Template Total0.998596.520.4993
Template load0.00190.186120.0010
Template processing0.996696.320520.4983
Template load and register function0.00010.013210.0001
states
state_id_array0.00110.107510.0011
state_identifier_array0.00140.135020.0007
Override
Cache load0.00160.1538160.0001
Sytem overhead
Fetch class attribute can translate value0.00060.062720.0003
Fetch class attribute name0.00170.164540.0004
XML
Image XML parsing0.00260.252320.0013
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00250.2375240.0001
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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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