We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26016
    • 561 Posts
    Hi!
    Now that I have contexts working in Revo, and thus multisite, a thought occurred to me. (It does happen from time to time)

    If desired, all Contexts can share the same templates, which is handy. I have a set-up which will have very similar sites with small variations.

    I was trying to think of the easiest way to have these small variations... is there any Template Tag that identifies which Context you’re in? I was thinking that I could use this variable, if it exists, to differentiate a path to some CSS for just that context. This way I could continue to use the same templates with these tiny overrides.

    If not, I guess I could write a small snippet that pumps out the Context into the template, or something like that. Any ideas welcome!

    Cheers, Dave
      MODx and Wordpress development
      Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4
      • 28215
      • 4,149 Posts
      [[*context_key]]
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
        • 26016
        • 561 Posts
        Quote from: splittingred at Jan 06, 2011, 01:02 PM

        [[*context_key]]
        Ooo, that’s HOT! smiley
        Thanks!
        Dave
          MODx and Wordpress development
          Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4