Questions tagged [global-variables]
The global-variables tag has no summary.
42 questions
0
votes
2
answers
268
views
$_SESSION Variable in EE
[EDIT - I have posted the answer to my question below]
EE 5.2.4
I'm having issues trying to use $_SESSION in EE.
What I would like to do is save an Amazon cart ID in the $_SESSION. Working in ...
0
votes
1
answer
92
views
Insert Selected Channel into the Template
We are creating a template that our client would use on many pages of their website, for example 'Accordion Layout Template'.
So we create a page 'Bikes', assign the 'Accordion Layout Template', then ...
1
vote
1
answer
103
views
EE2: How to use the {template_group} variable or how to get value of template group in a template?
I am confused about the usage of the mentioned variable. It should be plain and simple... but for some reason, I can't get it to work.
Documentation link for EE3: https://docs.expressionengine.com/v3/...
1
vote
1
answer
79
views
Deleted Template Variables (created via Low Variables) keep reappearing
http://recordit.co/R8eImfvLyP
EE3 with Low Variables installed. I created a bunch of variables in both EE and Low Variables only to try to remove them. They are showing in the Template Variable area ...
1
vote
1
answer
113
views
Referrer/URL Helper ee3?
Really need the ability to grab the refering url that URL helper offered. Is this available for EE3 or is there an alternative?
0
votes
2
answers
78
views
Selective parsing of {logged_in_username}
I have this in my template layout, running EE 3.4:
{if logged_in_group_id == "5"}
<script>dataLayer = [{'userID': '{logged_in_username}'}];</script>
Rest of the script pass data ...
0
votes
1
answer
116
views
Global variables parse time
I am currently trying to debug some of the page load times on a website we host, and am running into something I find odd.
Global Variables parsing seems to be taking up half the page load time...
(0....
0
votes
1
answer
153
views
Global variable tags {username}, {member_id}, {screen_name} not working
I've got a weird one going on here. EE 2.8 site.
I wanted to create a conditional based on whether it was ME on the site. I wanted to see some info that was not to be rendered to the normal user. So, ...
0
votes
1
answer
100
views
edit admin template varibles global variables via cms
how do i edit preferences for global variables in the cms, design > templates > global variables.
Iv looked at the following and think it might be what i'm looking to do, wondering if the cms cant ...
0
votes
1
answer
104
views
Do EE template partials have a preparse function similar to LowVars?
I'm wondering if there is a way to dynamically set variables within a template partial from the point at which it is included. This works in Low Variables as the preparse function, but is there ...
0
votes
1
answer
402
views
{site_url} global variable not outputting in php header redirect
Trying to create the following redirect template for some structure pages, however the url is outputting like this http://example.com/{site_url}#section. Any idea why {site_url} variable isn't working?...
0
votes
1
answer
284
views
how can i get ee global vars outside of ee?
I have tried something along the lines of
$email = ee()->....
and with a hope to include/require the page at the top of an external php page and then echo the value of $email.
This doesn't ...
1
vote
1
answer
424
views
check if a segment is a number
I am trying to figure out a way to set to variable values depending on if a specific segment is a number or not. First how to I check if the segment 2 is a number or not? I want to apply this type ...
0
votes
2
answers
128
views
Global variable as a module tag pair's parameter?
I'm trying to pass {ip_address} to a module, which isn't working:
{exp:rest url="http://domain.com/{ip_address}" verb="get" format="json"}
{/exp:rest}
The {ip_address} is getting interpreted as a ...
0
votes
1
answer
147
views
CE String outputting global variable tag minus "{ }"
I've got a page behind a login that I have various member groups set up for.
Depending on the member group, I want the link in the Downloads section to go to a different page: e.g. Contractors ...