The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
23 views

How to Modify a Global Date Variable

Is it possible to modify a date variable (entry_date in this case) so that you have entry_date plus one year (or any other amount of time)? For example, if entry_date was 6/4/14 2:59 PM, could I add ...
0
votes
1answer
26 views

Include CSS file in JS

I have a problem with url in js file First, in Snippets i have code In that init.js i have that (function($) { skel.init({ reset: 'full', breakpoints: { global: { range: '*', ...
0
votes
1answer
40 views

Using structure global variables in embeds

I'm trying to create a navigation menu inside an embed, I have the following code in my main template: {exp:structure:entries parent_id="{structure:page:entry_id}"} {if channel_short_name == ...
0
votes
1answer
37 views

Why is this comparison check not working on a Windows box?

I've set up the following code on a site. On my Mac (dev version - identical to the running live code) the template looks like this: {if '{current_path}'=='/'} ... {/if} And this works fine. But ...
2
votes
1answer
143 views

Twitter Summary Cards in ExpressionEngine

Any ideas how I can make use of Twitter Summary Cards via ExpressionEngine?
0
votes
1answer
67 views

Dynamic navigation on an MSM setup using {site_url}

I have an MSM setup where the primary site is the "main" site in EE and the subdomains are all sub-sites in EE. I have built out the primary navigation in the main site, but I don't know a good way to ...
2
votes
2answers
235 views

How to use global variables in if-condition?

Say I have a global variable foo. To output it in the templates, all I have to do is: <h1>{foo}</h1> However, I can't seem to use it in an if-condition. For example: {if foo == ...
0
votes
1answer
127 views

Focus Labs Master Config $env_global not working

I'm having the same issue as described below, however can't find a solution: Using Focus Lab's Master Config, I've set a test global variable for production, like so: ...
2
votes
1answer
49 views

A standard global variable in the params for a module is not being parsed [duplicate]

I have a module tag with a param that accepts a string. {exp:test:foo return_url="{current_url}"} ... {/exp:test:foo} In the module method, I get the return_url param using $return_url = ...
0
votes
2answers
83 views

Freeform default_value not working with global email variable

So I am building this "booking form" (really it just emails somebody) and I want the form to be pre-populated with the user's details if they are logged in. I have this mostly working, but the email ...
0
votes
1answer
117 views

Reason why site_url would work in template, but not current_url?

I have the following code using the {site_url} variable, like so: <div class="g-plusone" data-annotation="inline" data-width="300" data-href="{site_url}"> However, when I changed the variable ...
0
votes
1answer
172 views

Assets “count” variable

I looked through the docs and wasn't able to find a count variable to see what file you are in using a field tag. For example, I want to detect when the first file is being looped though my custom ...
5
votes
1answer
1k 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 ...
2
votes
1answer
264 views

Retrieving/setting cookie in index.php

I'm attempting to retrieve a cookie in index.php to record the value in a global_variable. I'd like to do it this way to avoid including PHP/plugin code on every template. Currently I have; ...
1
vote
1answer
80 views

Is it correct to put “{site_url}” inside a global variable?

As the title says, is it correct? Thanks
2
votes
1answer
68 views

Display Number of Active Members

I'd like to be able to display the number of "active" members on a site. Ideally this would be something like "number of members who have logged in in the past 30 days". Barring that, I'd settle for ...
3
votes
3answers
137 views

Conditional with Ip Address

This one has me baffled. I'd like to show some content based on the Global variable IP Address. But none of these work: {if {ip_address} != 127.0.0.2}SHOW THIS{/if} OR {if {ip_address} != ...
3
votes
3answers
609 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 ...
1
vote
1answer
115 views

Development (Local) with multiple sites using host file and IIS7 - Can't get FCPATH to recognize - Encoded characters

I am stuck again using IIS7 on a windows server. Trying to replicate the production environment for some testing on a Win7 box using IIS7 and host file to point o the sites. I have tried using ...
2
votes
2answers
70 views

Website's Company Information Stored In A Channel - good or bad?

I created a channel that has fields like: company name address a matrix of daily working hours etc Throughout the site, I need to display bits and pieces of this data. Does that mean I need to use ...
4
votes
3answers
1k views

path=logout - how to configure URL it redirects to?

I have put a logout link on my site. When I click it, I am logged out and redirected to the homepage. How do I specify a different page to redirect to?
0
votes
3answers
131 views

Problem with custom global variable

I created a custom config file with my own global variable. When I'm using the EE debugger, I have an output of my global variables: So, I guess, they exists and I can access to them. The problem ...
5
votes
3answers
243 views

Breaking my HTML into tiny pieces - template, snippets, or globals?

In order to maximize code reuse, I'm trying to break down the mark up for each of my form fields into individual "containers" (e.g. a template, snippet, global). The project I am working on is ...
4
votes
3answers
163 views

setting a global var in an embedded template with PHP

I have a header template with PHP parsing on Input an the following code: <?php $this->EE->config->_global_vars['user_language'] = "nl"; ?> When I use {user_language} in my ...
2
votes
2answers
160 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 ...
9
votes
2answers
1k 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?