creating a new class when publishing an article

Author Message

Hugo Siles

Thursday 06 May 2004 7:05:53 am

Hi all...
I have this problem, i don't know how to solve it, I have extended the article class and added an object relation list to it, what i want to do is create a new object in this relation list when the publish button is pressed...
So far, i have done this, but the problem is that when you press the publish button it is created a new object but with empty attributes.. is there a way to create the object but with certain values for the attributes???

I don't know if I'm being clear in this stuff, but any idea or comment would be apreciated

Thanks and regards

Hugo Siles

Bjørn Kaarstein

Tuesday 11 May 2004 6:47:42 am

Don't know if I get you right, but you could assign default values in the class setup.

Regards Bjørn

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

Main resources:

Total runtime0.0219 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 588.2656151.2266
Module start 'layout' 0.00440.0041 739.4922220.7344
Module start 'content' 0.00840.0117 960.2266997.7266
Module end 'content' 0.02010.0018 1,957.953129.9922
Script end 0.0219  1,987.9453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002812.6081140.0002
Check MTime0.00115.1370140.0001
Mysql Total
Database connection0.00062.893310.0006
Mysqli_queries0.002511.455830.0008
Looping result0.00000.068610.0000
Template Total0.00136.010.0013
Template load0.00104.640910.0010
Template processing0.00031.360210.0003
Override
Cache load0.00073.249110.0007
General
dbfile0.00031.477780.0000
String conversion0.00000.031640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs