value of $object.name variable when creating new object

Author Message

Thiago Campos Viana

Thursday 14 May 2009 12:06:12 pm

Hello, I tried to search how to set it, but I can't found how...

When I have to create a new object, the $object.name value is "New Folder", I wanna know how to set this value without overriding any template.

On content/edit.tpl it appears on that line:

<h1>{"Edit %1 - %2"|i18n("design/standard/content/edit",,array($class.name|wash,$object.name|wash))}</h1>

Could, anyone, please help me?

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

Ivo Lukac

Thursday 14 May 2009 1:57:03 pm

You can change it in your class definition. For more info look here:
http://ez.no/doc/ez_publish/technical_manual/4_0/concepts_and_basics/content_management/the_content_class

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Thiago Campos Viana

Friday 15 May 2009 6:33:54 am

Thx Ivo Lukac!

=)

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

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

Main resources:

Total runtime0.0150 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 589.1719152.6406
Module start 'layout' 0.00560.0030 741.812539.4766
Module start 'content' 0.00860.0043 781.289189.3359
Module end 'content' 0.01280.0022 870.625034.3047
Script end 0.0150  904.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002516.3952140.0002
Check MTime0.00127.6605140.0001
Mysql Total
Database connection0.00117.071110.0011
Mysqli_queries0.002315.289330.0008
Looping result0.00000.172710.0000
Template Total0.001711.010.0017
Template load0.00085.163510.0008
Template processing0.00095.794110.0009
Override
Cache load0.00053.469810.0005
General
dbfile0.00021.581280.0000
String conversion0.00000.091940.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.0002 secs