Forums / Developer / Get current page title from API / Comment49599
Piotrek Karaś
Thursday 29 May 2008 2:48:44 am
If you aim at getting the title in a universal way, that it would be difficult in my opinion. Exponential makes it possible to edit the XHTML head templates and that is by no means hacking, but standard customization. For example, we change the default title-generation rules in most of our integrations, and those also follow different algorithms. Also, for a lot of people that would take place in the template itself, so there will be no title-dedicated variable in the system, that you could easily reach for.
Now, one thing that you could try, which is also available at API level, are the object names, which are names based on selected attribute values of content objects. In most cases, they are kept short. Unfortunately, they do not reflect the structure by themselves.
Now, I have no idea how that information is relevant to your needs - hope it could help a bit.
Cheers,Piotrek
-- Company: mediaSELF Sp. z o.o., http://www.mediaself.pl eZ references: http://ez.no/partners/worldwide_partners/mediaself eZ certified developer: http://ez.no/certification/verify/272585 eZ blog: http://ez.ryba.eu