Documentation for Name Patterns is missing

Author Message

zurgutt -

Friday 15 July 2005 2:02:54 am

Comprehensive docs is nowhere to be found, no old docsite, new docsite, forums.
I tried to do "<nickname>|<first_name> <last_name>" but it seems to be wrong, intent is clear tho: to use nickname if its present, or full name if not. How?

Certified eZ developer looking for projects.
zurgutt at gg.ee

Mikael Johansson

Friday 15 July 2005 2:45:23 am

I don't understand. Is the problem that you are unable to fetch the attributes from the user or do you have trouble writing the if-clause in the template? Or something else?

Mikael Johansson, Sweden

Eivind Marienborg

Friday 15 July 2005 3:32:21 am

I think the right syntax is

<nickname|first_name>

I haven't had any luck using double values after the |, but haven't tried much either, though. Let me know if you get it working :)

zurgutt -

Friday 15 July 2005 9:48:31 am

I think the right syntax is
<nickname|first_name>

Yes, thats correct. But I would want to get nickname OR firstname+lastname. Some posts hint that pattern may have capabilities to do this, but not how. Can some of you wizards confirm its impossible, or tell, how? All help appreciated :)

Certified eZ developer looking for projects.
zurgutt at gg.ee

Eivind Marienborg

Saturday 16 July 2005 3:22:06 am

Have you tried <nickname|first_name last_name> ?

Frederik Holljen

Saturday 16 July 2005 6:30:20 am

Each separate entity of the name pattern should be enclosed within <>. So the correct syntax for what you want is:

<nickname|first_name> <last_name>

which yields nickname last_name if nickname exists. If not you will get first_name last_name

zurgutt -

Sunday 17 July 2005 10:31:26 am

Ok, then i guess that what i want ("nickname" or "firstname lastanme" is currently not possible. Too bad :) Thanks for replies.

Certified eZ developer looking for projects.
zurgutt at gg.ee

Frederik Holljen

Monday 18 July 2005 6:52:30 am

This issue has been resolved and the sollution will be available in the next releases. http://ez.no/community/bugs/object_name_pattern_problems

James Robertson

Thursday 04 August 2005 9:34:51 pm

Yes, but where is the documentation. I have hunted high and low.

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 19:22:38
Script start
Timing: Jan 18 2025 19:22:38
Module start 'layout'
Timing: Jan 18 2025 19:22:38
Module start 'content'
Timing: Jan 18 2025 19:22:38
Module end 'content'
Timing: Jan 18 2025 19:22:38
Script end

Main resources:

Total runtime0.7330 sec
Peak memory usage4,096.0000 KB
Database Queries81

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.0469152.6406
Module start 'layout' 0.00510.0029 740.687539.4766
Module start 'content' 0.00800.7234 780.1641723.2656
Module end 'content' 0.73140.0015 1,503.429720.1250
Script end 0.7329  1,523.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4587160.0002
Check MTime0.00140.1906160.0001
Mysql Total
Database connection0.00050.063810.0005
Mysqli_queries0.651588.8816810.0080
Looping result0.00090.1217790.0000
Template Total0.701895.720.3509
Template load0.00230.307720.0011
Template processing0.699595.434920.3498
Template load and register function0.00020.028310.0002
states
state_id_array0.00080.107110.0008
state_identifier_array0.00130.174520.0006
Override
Cache load0.00200.2670340.0001
Sytem overhead
Fetch class attribute can translate value0.00090.117550.0002
Fetch class attribute name0.00110.1505130.0001
XML
Image XML parsing0.00570.783950.0011
class_abstraction
Instantiating content class attribute0.00000.0047170.0000
General
dbfile0.00460.6277350.0001
String conversion0.00000.001040.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
8content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 34
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs