Object name in the administrator

Author Message

Alejandro Dominguez

Tuesday 11 January 2011 3:47:58 am

Hello!!

I have created a class in ezpublish that when I create a new object of this class the name doesn't appear.

I have attached a capture to show you what I see

http://subefotos.com/ver/?fff981dd49b319674c3aaf934233acdao.png

My class has an attribute called "Nombre" for the title. I suppose I have to tell ezpublish that this is the name it should use for the title but I don't know how to do it.

any ideas ???

Carlos Revillo

Tuesday 11 January 2011 4:07:53 am

Hola Alejandro.

You need to edit the class again and fill the 'PatrĂ³n de nombre de objeto:' field. That field should have the attribute you want for the object name. so, if your attribute is called 'title', you can just type <title> in that field.

Then you will need to republish your contents. for the new ones, name will be shown as expected.

It's better explained at http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Concepts-and-basics/Content-management/The-content-class

Cheers.

Alejandro Dominguez

Tuesday 11 January 2011 4:13:21 am

it works!!

Thanks Carlos for your quick answer and sorry if that was a newbie question :$ . I have to learn a lot of eZ.

Best regards,

Alejandro

Carlos Revillo

Tuesday 11 January 2011 4:18:38 am

no problem!. glad it helped.

Best.

Bertrand Dunogier

Friday 14 January 2011 3:08:20 am

@Alejandro could you please mark the topic as resolved ? Thanks ! :-)

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

Abdelkader RHOUATI

Friday 14 January 2011 3:37:18 am

Hello,

I would add that the same principle applies to the url alias.
And to update the names and url aliases, in the event of a change in the class, you can use the following two scripts:

  • bin/php/updateniceurls.php => for url
  • update/common/scripts/updatecontentobjectname.php => for names

TKS

Abdelkader RHOUATI

Blog (french) : http://arhouati.com
----
Extension arh_jdebug : EzDebug using jquery

Alejandro Dominguez

Friday 14 January 2011 4:25:55 am

Hello,

Thanks Abdelkader for the advise :) .

Bertrand I didn't know I have to mark it. Newbie here :p . I'll do it now.

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 10:25:13
Script start
Timing: Jan 18 2025 10:25:13
Module start 'layout'
Timing: Jan 18 2025 10:25:13
Module start 'content'
Timing: Jan 18 2025 10:25:14
Module end 'content'
Timing: Jan 18 2025 10:25:14
Script end

Main resources:

Total runtime0.7435 sec
Peak memory usage4,096.0000 KB
Database Queries73

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 587.9141152.6250
Module start 'layout' 0.00710.0028 740.539139.4531
Module start 'content' 0.00990.7318 779.9922664.8984
Module end 'content' 0.74170.0017 1,444.890616.1563
Script end 0.7434  1,461.0469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4540160.0002
Check MTime0.00130.1770160.0001
Mysql Total
Database connection0.00140.188810.0014
Mysqli_queries0.675590.8622730.0093
Looping result0.00080.1074710.0000
Template Total0.713195.920.3566
Template load0.00180.237820.0009
Template processing0.711495.679320.3557
Template load and register function0.00010.014810.0001
states
state_id_array0.00080.103310.0008
state_identifier_array0.00060.078720.0003
Override
Cache load0.00160.2086420.0000
Sytem overhead
Fetch class attribute can translate value0.00120.165440.0003
Fetch class attribute name0.00130.1748100.0001
XML
Image XML parsing0.00150.199140.0004
class_abstraction
Instantiating content class attribute0.00000.0054120.0000
General
dbfile0.00180.2385280.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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 8

Time used to render debug report: 0.0001 secs