The variable tag has no wiki summary.
0
votes
2answers
27 views
Preload replace not evaluating variable outside of pair
I am trying to get the current entry's category so I can make a comparison inside a menu elsewhere to see if the menu item is for the current page. I have the following code at the top of my template:
...
0
votes
2answers
26 views
How to output variables such as the current page's entry_id in the script tag
One one of our sites, we have ChannelFiles add-on installed and in the control panel (when editing an entry) it outputs a useful set of variables (see attached). But this is only part of add-on and if ...
1
vote
1answer
20 views
Pagination current_page not retaining
I have the following code:
{paginate}
{pagination_links}
<div class="block_pager">
{previous_page}
<a href="{pagination_url}" class="prev">Previous</a>
...
0
votes
0answers
25 views
Use variable in content
Is it possible to use a variable in my content? If got my basic pages with a title and body. In the CP I use a WYSIWYG editor for the body.
For example. Now I don't want to put my name or ...
0
votes
2answers
36 views
Conditional variable error
I previously asked a question about this, but the question itself has kind of changed, and I don't know if anyone's still following it to begin with.
This is the error I'm seeing:
[06-May-2013 ...
0
votes
1answer
43 views
Invalid EE conditional variable error - UPDATED
NEW INFO
OK, I found that the error was being thrown by a custom exception built into expression engine that will do partial matches on variable names if it doesn't find the original one.
From ...
2
votes
3answers
60 views
Why are PHP and Stash variables not set as expected within EE conditionals?
I boiled my problem down to this template code on a template with "Allow PHP" set to "YES" and "PHP Parsing Stage" set to "Output":
{if 1 == 1}
First block
<?php echo '1 == 1 is true'; ?>
...
2
votes
2answers
39 views
Using a custom PHP variable in a channel entry start_on and stop_before
I am attempting to display entries from a specific channel 7 days before and 7 days after an entry_date from another entry. I don't want to use a plugin because.
Here's how I am getting / ...
1
vote
1answer
18 views
Assigning a Value From One channel:entries Call To Be Used In Another
In my template I'd like to capture the entry_id of my main channel:entries loop, because I have subsequent loops where I may want to avoid that entry in one case, and invoke it again in another. So ...
1
vote
2answers
87 views
How to pass php variable from one EE template to another
I am using a Freeform Pro form where the user can edit a numeric field (number of of places booked for an event). When they click on submit, they are sent to a processing template to do the ...
0
votes
1answer
33 views
Channel Entry in One Variable?
Since I need bits and pieces of a channel entry on various parts of my page, is it possible to store the channel entry in one big variable that contains everything? That way, I can access it ...
1
vote
1answer
49 views
Create tag pair variables
I now have my module working like I need it to and my single tag pair calls the correct function. But I'm wanting to create a tag pair that is common in most modules/plugins. Here is the function I am ...
3
votes
1answer
101 views
What's the difference between url_title and url_title_path?
I keep running into issues, and apparently I just don't understand the difference between these two variables. One set of pages works with url_title_path, and the other set will only act right with ...
7
votes
2answers
136 views
How do I assign custom global variables from my config file?
I'm currently developing custom config files.
Some of my files are deeply located in my architecture and I want to use some of my variables in the config as specific tag.
Example :
...
5
votes
1answer
33 views
Why are my entry dates displaying incorrectly in Safari?
I'm not sure what could be causing this.
Dates are displaying incorrectly in Safari on my site. They are displaying as 1 day before the actual date that is set in the CP. I've never seen this and ...
1
vote
5answers
113 views
Custom variable within tag pair?
I need to restructure the channel entries (I'm trying to group them by one of the channel fields). For example, say I have a list of fruits and each fruit had a color. I'm trying to group these fruits ...
6
votes
1answer
181 views
Variables in templates w/o PHP enabled
I have a problem where I need to increment a variable if it satisfies a conditional like so:
{matrix_tag_pair}
{if matrix_column_name}
$increment++
{/if}
{if $increment > 9}
do ...
1
vote
2answers
148 views
Email encode tag Javascript issues
I use {encode="{webmaster_email}" title="Send E-Mail"} to hide my email address from harvester bots.
When I use this code within my template all is fine. This code is also part of the footer. The ...
2
votes
4answers
63 views
Is there a plugin that will strip a bit of text out of a string?
I've got a variable like {current_url} which contains the full url of the page you are on.
I want to strip out the last segment from it.
Is there a plugin or native EE way of doing that?
Say that ...