Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [global-variables]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5 votes
3 answers
1k views

Global Variable Parsing in Add-On Module

Trying to figure out what appears to be a global variable parse issue in a module add-on template tag. Here's a sample of the tag used in the template: {exp:syn_fb_comments:show url="{current_url}"}{...
Synergema's user avatar
  • 155
15 votes
2 answers
3k views

What is the difference between a global variable, a snippet and an embedded template?

What is the difference between a global variable, a snippet and an embedded template? When and where should I be using each of them?
foamcow's user avatar
  • 7,176
7 votes
2 answers
4k views

How to create a global variable inside config.php

I'm trying to build a simple config bootstrap for use in multi-server environments. I realise there are lots of config bootstraps around, but a lot of the popular ones seem a bit complicated for what ...
Stephen's user avatar
  • 1,349
3 votes
2 answers
201 views

Why wouldn't global variable parse correctly with Master Config?

Using Focus Lab's Master Config, I've set a test global variable for production, like so: $env_global['global_test'] = 'test'; Then in an embedded template I've dropped in {global_test}. Also tried ...
A Herrera's user avatar
  • 626