Simulate create content

Author Message

The Pirahna

Wednesday 27 April 2005 4:15:13 am

Oki ... i need a script for an extension that would make the same operations used to create new content (using a custom made class) ...

like the create a new article page ...

anyway ... i saw ez uses the content/edit page , an incremented id ...

so .. can anyone help me make a sepparate add content page ?

Bård Farstad

Wednesday 27 April 2005 7:41:32 am

You can look at some of the import/export contributions. They create content objects in separate modules. Mabye this code helps on along the way.

--bård

Documentation: http://ez.no/doc

The Pirahna

Wednesday 27 April 2005 7:54:32 am

can i have an example of a script or something ?

oh ... and if you can explain a little how the template system works ? (i didn't really understand the documentation) ...
i want to know how the .tpl files are connected and displayed using a .php file (as a module in an extension)

thanks

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 02:39:00
Script start
Timing: Jan 19 2025 02:39:00
Module start 'layout'
Timing: Jan 19 2025 02:39:00
Module start 'content'
Timing: Jan 19 2025 02:39:01
Module end 'content'
Timing: Jan 19 2025 02:39:01
Script end

Main resources:

Total runtime1.5120 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.0103 589.1484152.6250
Module start 'layout' 0.01030.0041 741.773439.4453
Module start 'content' 0.01441.4945 781.2188530.1953
Module end 'content' 1.50890.0030 1,311.41418.1719
Script end 1.5119  1,319.5859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.2800160.0003
Check MTime0.00140.0907160.0001
Mysql Total
Database connection0.00140.092110.0014
Mysqli_queries1.440395.2616570.0253
Looping result0.00070.0454550.0000
Template Total1.452396.120.7262
Template load0.00260.170420.0013
Template processing1.449795.882620.7249
Template load and register function0.00020.014210.0002
states
state_id_array0.00150.100410.0015
state_identifier_array0.00310.208120.0016
Override
Cache load0.00210.1391160.0001
Sytem overhead
Fetch class attribute can translate value0.00090.057720.0004
Fetch class attribute name0.00160.102740.0004
XML
Image XML parsing0.00070.046520.0004
class_abstraction
Instantiating content class attribute0.00000.000640.0000
General
dbfile0.00180.1173170.0001
String conversion0.00000.000840.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
4content/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/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: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs