more control over "Object name pattern"

Author Message

Matthew Knight

Thursday 30 October 2008 9:15:37 am

is there a way of controlling the object name pattern with more than just defining which strings it uses, ie. <pagetitle|strtolower|substr(5)> or similar?

André R.

Thursday 30 October 2008 1:18:59 pm

The object name pattern is a pattern not a programming interface, so no.
There are enhancements request for it, but not anywhere close to do stuff like this.

So i think it is better to identify why you are asking for this.
Is it the urls? Use the url transformation system (3.10 and higher)
Is it the titles in the views / menus / paths? override the templates or use css.
Do you want to limit object name? Use short titles in your classes and limit the input, and make it required if you want to.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Piotrek Karaś

Tuesday 18 November 2008 8:59:24 pm

Andre,

Your questions gave me a though, but I put it here:
http://ez.no/developer/forum/suggestions/object_name_pattern_like_custom_values

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

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 16:31:58
Script start
Timing: Jan 18 2025 16:31:58
Module start 'layout'
Timing: Jan 18 2025 16:31:58
Module start 'content'
Timing: Jan 18 2025 16:31:58
Module end 'content'
Timing: Jan 18 2025 16:31:58
Script end

Main resources:

Total runtime0.0196 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 588.0156152.6250
Module start 'layout' 0.00740.0044 740.640639.4453
Module start 'content' 0.01170.0058 780.085989.3359
Module end 'content' 0.01750.0021 869.421934.3047
Script end 0.0195  903.7266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002914.8263140.0002
Check MTime0.00115.6270140.0001
Mysql Total
Database connection0.00073.354510.0007
Mysqli_queries0.006131.203330.0020
Looping result0.00000.076710.0000
Template Total0.00178.510.0017
Template load0.00094.732310.0009
Template processing0.00073.737910.0007
Override
Cache load0.00063.124510.0006
General
dbfile0.00031.521580.0000
String conversion0.00000.041440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs