We launched new forums in March 2019—
join us there
.
In a hurry for help with your website?
Get Help Now!
Back to MODX.com
Forums
Docs
Revo Issues
Blog
My Forums
General
General Discussions
Search
Setting & Calling Variables Per Context [solved]
31 Posts
Pier2Design
Reply #1,
15 years, 7 months ago
All I need to do is have some basic contact info associated with each context I have. Like:
Context1:
-Firstname: Bob
-Lastname: Builder
-email:
[email protected]
Context2:
-Firstname: Larry
-Lastname: Cucumber
-email:
[email protected]
And so on, so that I can drop those bits of information wherever I need to. Whats the best way to go about it?
☆ A M B ☆
3,141 Posts
Mark Hamstra
Reply #2,
15 years, 7 months ago
Add them as a context setting (right click on the context, settings tab) and call them with the system setting tag syntax: [[++key]]
Hope that’s simple enough
Mark Hamstra
• Developer spending his days working on
Premium Extras
and a
MODX Site Dashboard with the ability to remotely upgrade MODX and extras
to make the MODX world a little better.
Tweet me @
mark_hamstra
, check my infrequent blog at
markhamstra.com
, my slightly more frequent ramblings at
MODX.today
or see code at
Github
.
31 Posts
Pier2Design
Reply #3,
15 years, 7 months ago
Superb. Thanks a bunch!