eZ Community » Forums » General » Object name in the administrator
expandshrink

Object name in the administrator

Object name in the administrator

Tuesday 11 January 2011 12:47:58 pm - 6 replies

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 ???

Modified on Tuesday 11 January 2011 12:48:29 pm by Alejandro Dominguez

Tuesday 11 January 2011 1:07:53 pm

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/Techn...Content-management/The-content-class

Cheers.

Modified on Tuesday 11 January 2011 1:09:17 pm by Carlos Revillo

Tuesday 11 January 2011 1:13:21 pm

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

Tuesday 11 January 2011 1:18:38 pm

no problem!. glad it helped.

Best.

Friday 14 January 2011 12:08:20 pm

@Alejandro could you please mark the topic as resolved ? Thanks ! happy.gif Emoticon

Friday 14 January 2011 12:37:18 pm

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

Friday 14 January 2011 1:25:55 pm

Hello,

Thanks Abdelkader for the advise happy.gif Emoticon .

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

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from