Forums / Developer / Documentation for Name Patterns is missing

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.

eZ debug

Timing: Jan 18 2025 16:12:33
Script start
Timing: Jan 18 2025 16:12:33
Module start 'content'
Timing: Jan 18 2025 16:12:34
Module end 'content'
Timing: Jan 18 2025 16:12:34
Script end

Main resources:

Total runtime1.1366 sec
Peak memory usage4,096.0000 KB
Database Queries218

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0123 587.8438180.8125
Module start 'content' 0.01230.9723 768.6563728.3594
Module end 'content' 0.98460.1519 1,497.0156340.4297
Script end 1.1365  1,837.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.3792210.0002
Check MTime0.00160.1394210.0001
Mysql Total
Database connection0.00650.572110.0065
Mysqli_queries1.042491.71152180.0048
Looping result0.00230.20132160.0000
Template Total1.099396.720.5497
Template load0.00260.231720.0013
Template processing1.096796.488820.5483
Template load and register function0.00010.008010.0001
states
state_id_array0.00090.077610.0009
state_identifier_array0.00120.101720.0006
Override
Cache load0.00230.2026340.0001
Sytem overhead
Fetch class attribute can translate value0.00110.096260.0002
Fetch class attribute name0.00120.1051130.0001
XML
Image XML parsing0.00240.210860.0004
class_abstraction
Instantiating content class attribute0.00000.0022170.0000
General
dbfile0.00350.3074460.0001
String conversion0.00000.000930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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