Object name pattern

Author Message

Femar Group

Monday 04 April 2005 1:45:55 am

When I'm creating a new content class, in the field "Object name pattern" i use for example <name>.
Now I want to use only a part of the string contained in <name>, something like shorten(30).

Please help me!!!

Ekkehard Dörre

Monday 04 April 2005 2:37:26 am

Hi Femar,

via template:
http://www.ez.no/ez_publish/documentation/reference/template_operators/strings/shorten
Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Femar Group

Monday 04 April 2005 3:12:05 am

Thanks, but i want to use it in the admin interface when i'm creating a new class (in the field "Object name pattern").

Ekkehard Dörre

Monday 04 April 2005 4:11:36 am

setup->classes->

In some datatypes you can use:

Max string length:

30 characters

so anybody can insert only 30 characters.

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Femar Group

Monday 04 April 2005 4:43:32 am

Sigh...
Ekke you're right, but the field <b>Object name pattern</b> is not a datatype defined by me, so I can't change the "string length".
When I add a new class, there are 4 default parameters for the new class:
1) Name
2) Identifier
<b>3) Object name pattern</b>
4) Container (checkbox)

Paul Forsyth

Monday 04 April 2005 4:49:19 am

There isnt a lot you can do with object names. To change this you need to modify the php class file :(

Look at this bug from a while back:

http://ez.no/community/bugs/object_name_pattern_should_allow_more_options

paul

Femar Group

Monday 04 April 2005 6:06:23 am

Great!!!
It's exactly what i need.
Thanks a lot!

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 20 2025 04:07:51
Script start
Timing: Jan 20 2025 04:07:51
Module start 'layout'
Timing: Jan 20 2025 04:07:51
Module start 'content'
Timing: Jan 20 2025 04:07:53
Module end 'content'
Timing: Jan 20 2025 04:07:53
Script end

Main resources:

Total runtime1.8390 sec
Peak memory usage4,096.0000 KB
Database Queries71

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 589.0547152.6094
Module start 'layout' 0.00540.0028 741.664139.4141
Module start 'content' 0.00821.8295 781.0781622.0547
Module end 'content' 1.83770.0013 1,403.132816.1875
Script end 1.8390  1,419.3203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.1772160.0002
Check MTime0.00140.0754160.0001
Mysql Total
Database connection0.00050.028910.0005
Mysqli_queries1.777796.6627710.0250
Looping result0.00060.0331690.0000
Template Total1.805598.220.9028
Template load0.00200.108320.0010
Template processing1.803598.068420.9018
Template load and register function0.00010.005310.0001
states
state_id_array0.00210.113610.0021
state_identifier_array0.00200.109420.0010
Override
Cache load0.00170.0927430.0000
Sytem overhead
Fetch class attribute can translate value0.00070.036330.0002
Fetch class attribute name0.00130.068190.0001
XML
Image XML parsing0.00110.060830.0004
class_abstraction
Instantiating content class attribute0.00000.0015130.0000
General
dbfile0.00090.0512220.0000
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
6content/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
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs