Forums / Developer / Documentation for Name Patterns is missing
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 :)
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 :)
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
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.
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.