Forums / General / Object name in the administrator

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.

eZ debug

Timing: Jan 18 2025 02:48:21
Script start
Timing: Jan 18 2025 02:48:21
Module start 'content'
Timing: Jan 18 2025 02:48:22
Module end 'content'
Timing: Jan 18 2025 02:48:22
Script end

Main resources:

Total runtime0.8437 sec
Peak memory usage4,096.0000 KB
Database Queries210

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00040.0057 587.7109180.8438
Module start 'content' 0.00600.7199 768.5547669.9766
Module end 'content' 0.72590.1177 1,438.5313341.0625
Script end 0.8436  1,779.5938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.4985210.0002
Check MTime0.00160.1874210.0001
Mysql Total
Database connection0.00070.081210.0007
Mysqli_queries0.761190.20942100.0036
Looping result0.00220.26322080.0000
Template Total0.818197.020.4091
Template load0.00210.249920.0011
Template processing0.816096.715220.4080
Template load and register function0.00010.013610.0001
states
state_id_array0.00080.095110.0008
state_identifier_array0.00130.148720.0006
Override
Cache load0.00180.2160420.0000
Sytem overhead
Fetch class attribute can translate value0.00150.179850.0003
Fetch class attribute name0.00160.1882100.0002
XML
Image XML parsing0.00230.266950.0005
class_abstraction
Instantiating content class attribute0.00000.0029120.0000
General
dbfile0.00330.3910390.0001
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 8

Time used to render debug report: 0.0002 secs