The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
21 views

How do I create a single template tag which outputs multiple bits of data?

I have just created my own module and need a bit of help displaying the content on the front end. I currently have some template tags {exp:address_book:contact}{/exp:address_book:contact} and within ...
0
votes
0answers
17 views

Tabs and a playa inside a matrix with var=prefix

I did make an earlier post simliar but I have solved some of the issues mostly by rebuilding the tabs from a strait Zurb mark up. It all works fine until I put my EE code in there and it stacks the ...
0
votes
1answer
21 views

Using a custom variable further up the page

I have a channel field with no results {if no_results} set variable here {/if} I want to set a variable but use it further up the page {if my_custom_var != "empty"} do some layout stuff here {/if} ...
0
votes
3answers
81 views

var_prefix= not working as one would hope

OK revamped question: now it displays all the right stuff but it doesn't interact with the tabs and stacks them all in a static display. straight forward EE code works fine. Once i insert the prefix ...
1
vote
2answers
79 views

Expression Engine - Passing Custom Field Variables to Layout

I'm trying getting to grips with Expression Engine. Specifically passing custom field information to a master layout I have created two template groups. One for the overall layout including the ...
0
votes
2answers
47 views

Template variable not parsing

We have a custom third-party module called qo5. All of our controllers are in there. I have a template that I need to pass a variable from a PHP function to. {exp:qo5 action="deal/getDealCode"} ...
1
vote
1answer
56 views

Switchable display order for playa field items

I'm trying to arrange it so that the output order of a Playa field can be controlled by a global variable or radio button channel field (to make it able to be toggled from the listed order to random) ...
1
vote
1answer
40 views

using globals in channel entry tag

so I am trying to use a dynamic variable, this works {member_id} {exp:channel:entries channel="vacancies" author_id="9"} and this does not {member_id} {exp:channel:entries ...
1
vote
2answers
49 views

How to pass variables and then display the results?

Is there a plugin, technique, or combination of plugins/techniques that will allow me to do the following? My channels are like this: Parent: Product Children: Colour, Size, Style, etc. A ...
0
votes
1answer
25 views

adding a variable to a partial template

I am using creating template parts (header, footer) but would like to know how I can add a variable, a body class to individual templates. I see people are using stash but is there another way to set ...
0
votes
1answer
33 views

How do I resolve this scope issue with Stash?

I'm just playing around with implementing Stash on a site, following the Template Partials Using Stash article, but now I seem to be having a scope/execution order issue. Layout <html> ...
1
vote
1answer
99 views

Create a variable from a URL's Query String

How can a create a variable that is pulled from a URL like the one below? eg: http://www.site.com/page.php?Item_ID=774&score=42 Need to pull the number "42" from the url and placed into a form ...
2
votes
1answer
35 views

calendar, more efficient code

the goal: -show the remainder of the current month's events always -when end of month is near (after the 18th, for example), also show the upcoming month's events this is what i have presently, ...
1
vote
1answer
53 views

Stash embeds containing multiple nested plugins doesn't retrieve anything

I'm trying to do some stash embeds but when embeds contain nested plugins (so, more than one) he doesn't retrive any value. {my_loop}{stash:embed name="my_total{count}" ...
1
vote
3answers
66 views

Invalid EE Conditional Variable

This error: Invalid EE Conditional Variable Filename: libraries/Functions.php Line Number: 2761 occurs when I have this code in a BrilliantRetail template: {items} <tr> <td ...
1
vote
2answers
562 views

Variables in templates

I want to update a variable based on my module. I can pass the variable from the main template (say A) to the embedded one(say B). But how can I retrieve this variable back in Template A after ...
1
vote
2answers
111 views

Switchee with multiple stash variables only evaluates first variable

I have the following code: {exp:switchee variable="{exp:stash:get name='custom_sidebar_text'}/{exp:stash:get_list name='related_articles'}/{exp:stash:get_list name='related_events'}" ...
0
votes
1answer
45 views

Store Data in Channel Tag Variable

I'm using the EXP:QUERY tag to get the count of a channel. And I am basically trying to use this for page pagination, and its a custom pagination because of the type of template I'm building. And I ...
0
votes
1answer
75 views

get function value in a plugin

i'm trying to write my own plugin and new to php to simplify i want to grab a string from the tempalte then do something with it How do i call getMyString() in another function? EDIT: class test { ...
0
votes
1answer
97 views

Passing preload_replace variables into a plugin

I've been working on my first EE plugin today, and I need to make it dynamic by passing either a PHP variable, or I would have thought I can use a preload_replace variable, from the template that ...
3
votes
1answer
190 views

EE 2.6.1. Combine relationships and related categories for editorial workflow

On our Single entry pages we recommend other articles. Four slots are available. channel: articles. channel fields: Content Elements field for the text and a native EE Relationship field called ...
1
vote
1answer
101 views

Channel Images and Matrix / Increment a variable/count within a matrix field?

Is there a possibility to increment a variable/count (something like "i++") within a matrix field so that the variable is incremented for each row with certain parameters? The background is that I ...
1
vote
1answer
112 views

Passing Variables

I hardly know any OOP PHP so I don't know how to properly pass variables, especially in EE. I am working in a Module, and I have a function that passes my modules results to a .php file that has the ...
0
votes
1answer
260 views

Parsing JSON in EE tag

We have a BrilliantRetail cart and I'm adding JSON data into an attribute named itemJSON. In the cart template, we loop through the items in the cart using the {items}{/items} tag and I need to show ...
4
votes
3answers
82 views

alternative to php var in template?

It's been a solid year since my last ee project. The things you forget over time :) At the top of my template I show the latest featured entry (limit="1" search:featured="yes"). Later in my template ...
0
votes
1answer
145 views

Can I use Stash inside Third Party Module Tags?

in the examples of Stash and every other similar plugin I always see the variables being set inside the channel:entries tag. But what if I need to set a tag inside the tag of another module? Like for ...
0
votes
2answers
122 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
163 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
47 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
44 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
222 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 ...
2
votes
2answers
246 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 ...
3
votes
3answers
229 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
388 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
35 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
399 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
46 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
276 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
356 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
326 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
46 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
370 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
529 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
350 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
97 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 ...