ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Using Custom defined global variables within Forum Templates

October 10, 2012 4:36am

Subscribe [1]
  • #1 / Oct 10, 2012 4:36am

    outline4

    271 posts

    hi there,

    Is there a way to use custom global variables within the forum templates?
    or path variables?

    in my index templates, I’ve created some useful variables, that I’d like to use within the forum.

    $assign_to_config['global_vars'] = array(
         'cgv_language_code' => 'de',
         'cgv_root' => '/',
         'cgv_locale' => 'de_DE',
         'cgv_language' => 'german',
         'language' => 'deutsch'
     ); // This array must be associative

    it would be handy to be able to use them in the forum templates.
    also the path variables {path="/"}

    cheers
    stefan

  • #2 / Oct 11, 2012 4:45pm

    Kevin Smith

    4784 posts

    Hi Stefan,

    Not typically. The only way to use global variables in your forums is to run them through the regular templates, as noted here. If you’re running EE 2.5.3, however, I’d recommend holding off on that since there’s a bug that currently breaks part of that feature.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases