Forums / General / value of $object.name variable when creating new object

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