Are lexicon strings available in the front end?
I can’t get a language tag to display anything but the key value.
Also, can you specify the namespace and topic in the tag?
Quote from: OpenGeek at Jul 10, 2009, 04:41 PM
Quote from: BobRay at Jul 08, 2009, 07:50 PM
Also, can you specify the namespace and topic in the tag?
Actually, I think allowing [[%key? &namespace=`ns` &topic=`topic`]] would be a great idea, and prevent the need to load the topics explicitly in a snippet or plugin.
I was thinking [[%key:namespace:topic]], but I agree that a snippet or plugin shouldn’t be necessary.
Fair enough. How about:
or would that mess with tag processing?
Quote from: OpenGeek at Jul 12, 2009, 03:25 PM
Quote from: BobRay at Jul 12, 2009, 12:44 AM
Fair enough. How about:
or would that mess with tag processing?
I think the existing tag syntax is fine and introducing yet another syntax seems counter-intuitive to me.
On reflection, I agree.
In 2.0 SVN:
- Added ability to load lexicon topics via tag: [[%key? &namespace=`mynamespace` &topic=`mytopic`]]
shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect |
github |
splittingred.com