Share » Forums » Setup & design » Formatting the object name pattern

Formatting the object name pattern

Formatting the object name pattern

Tuesday 28 November 2006 9:03:19 am - 3 replies

Author Message

Kristian Hole

Tuesday 28 November 2006 9:37:59 am

Unfortunately this is not possible without changing the kernel.

The name is set in:

kernel/classes/ezcontentclass.php

in the functions:

contentObjectName()
buildContentObjectName()

For the datetime-datatype it comes from:

classes/datatypes/ezdatetime/ezdatetimetype.php
and the function

title()

Which actually sets the date formatted according to your locale. But changing how the locale shows the date will change it on your entire site. Unfortunately. Please add an enhancement report in the bugtracker.

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

Martin B

Wednesday 29 November 2006 4:00:30 am

Does that ONLY affect the name dates get parsed in the title creation? If so, I think I can live with that. Dates are rarely part of title anyway.

I will write a kernel override and post it here - thanks for the help and the precise directions.

Martin B

Wednesday 29 November 2006 9:35:47 am

I just noticed: When I switch to another language, the title is still the same. Doesn't the title get automatically translated? Of course I want my title to be different for every translation. That doesn't seem to work, though.

I've tried clearing the cache.

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

36 542 Users on board!

Forums menu