HTTP/2 302
server: nginx
date: Fri, 16 Jan 2026 14:35:15 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20110414234258
location: https://web.archive.org/web/20110414234258/https://expressionengine.com/forums/viewthread/184219/
server-timing: captures_list;dur=0.777006, exclusion.robots;dur=0.069089, exclusion.robots.policy;dur=0.055989, esindex;dur=0.013657, cdx.remote;dur=24.043841, LoadShardBlock;dur=108.461785, PetaboxLoader3.datanode;dur=52.727718, PetaboxLoader3.resolve;dur=25.782586
x-app-server: wwwb-app221-dc8
x-ts: 302
x-tr: 159
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app221; path=/
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Fri, 16 Jan 2026 14:35:15 GMT
content-type: text/html; charset=utf-8
x-archive-orig-date: Thu, 14 Apr 2011 23:42:57 GMT
x-archive-orig-server: Apache
x-archive-orig-x-powered-by: PHP/5.3.2-1ubuntu4.7
x-archive-orig-set-cookie: exp_last_activity=1302842577; expires=Fri, 13-Apr-2012 23:42:57 GMT; path=/; domain=.expressionengine.com
x-archive-orig-set-cookie: exp_tracker=a%3A5%3A%7Bi%3A0%3Bs%3A26%3A%22%2Fforums%2Fviewthread%2F184219%2F%22%3Bi%3A1%3Bs%3A26%3A%22%2Fforums%2Fviewthread%2F181259%2F%22%3Bi%3A2%3Bs%3A26%3A%22%2Fforums%2Fviewthread%2F181160%2F%22%3Bi%3A3%3Bs%3A25%3A%22%2Fforums%2Fviewreply%2F879543%2F%22%3Bi%3A4%3Bs%3A25%3A%22%2Fforums%2Fviewreply%2F879132%2F%22%3B%7D; path=/; domain=.expressionengine.com
x-archive-orig-set-cookie: exp_forum_topics=a%3A2%3A%7Bi%3A181259%3Bi%3A1302842084%3Bi%3A184219%3Bi%3A1302842580%3B%7D; expires=Fri, 13-Apr-2012 23:42:57 GMT; path=/; domain=.expressionengine.com
x-archive-orig-expires: Mon, 26 Jul 1997 05:00:00 GMT
x-archive-orig-last-modified: Thu, 14 Apr 2011 23:42:57 GMT
x-archive-orig-pragma: no-cache
x-archive-orig-connection: close
x-archive-orig-vary: Accept-Encoding, User-Agent
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Thu, 14 Apr 2011 23:42:58 GMT
link:
; rel="original",
; rel="timemap"; type="application/link-format",
; rel="timegate"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: alexa-web-20110708223954-00056/52_21_20110414233407_crawl103.arc.gz
server-timing: captures_list;dur=0.562051, exclusion.robots;dur=0.019794, exclusion.robots.policy;dur=0.009218, esindex;dur=0.011664, cdx.remote;dur=16.995421, LoadShardBlock;dur=187.430140, PetaboxLoader3.datanode;dur=166.323289, PetaboxLoader3.resolve;dur=121.044591, load_resource;dur=125.976343
x-app-server: wwwb-app221-dc8
x-ts: 200
x-tr: 392
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
please make global_vars work in snippets! | ExpressionEngine Community Forums
please make ‘global_vars’ work in snippets!
Posted: 21 March 2011 12:47 PM
[ Ignore ]
Lab Assistant
Total Posts: 289
Joined 06-27-2008
contrairy to what you might think:
global variables, that are defined within the index.php file, do not work within snippets!
it would be very nice if they did!
$assign_to_config[ 'global_vars' ] = array( 'lc_language_code' => 'de' ); // This array must be associative
so {lc_language_code} does not work in any snippet!
making it impossible to have multilanguage templates AND snippets… which is very sad! I come to love snippets!
and yes: please update the docs as fast as possible…
From the docs:
Snippets can contain any content, including ExpressionEngine tags and even PHP.
cheers
stefan
Signature
outline4.ch | buy me a beer…