Questions tagged [preload-replace]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-2
votes
1answer
37 views

Preload text for AMP

I'm trying to replace code within the body of an article depending on whether it is the AMP version or not. For example, an article with an embedded image that begins with
0
votes
2answers
24 views

User addon and preload replace

I'm using preload replace to show a specific entry for a user, but the variable always displays the first option in the list. What am I doing wrong? {exp:user:profile} {categories group_id="5"} {...
0
votes
1answer
98 views

Does EE3 support preload-replace with conditionals in grid fields?

I keep running into issues using preload-replace with conditionals that are in a grid field. I have the preload: {preload_replace:staticchannelslug="gp"} And am trying to use it like so: ...
0
votes
2answers
163 views

Stash variable changes inside of Playa tag

I have a stash variable set to the value of a transcribe variable at the top of my template: {exp:stash:set name="where_to_buy_translation" parse_tags="yes"} {exp:transcribe:uri path='/where-to-...
0
votes
1answer
297 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 ...
1
vote
1answer
733 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 ...
0
votes
2answers
199 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: ...
3
votes
2answers
178 views

Random String Returned on Plugin

I have a simple plugin that runs a query and returns a single value. {exp:company_id id='{segment_3}'} This outputs a number such as 5081 If I do this: {preload_replace:cid="{exp:company_id id='{...
3
votes
1answer
303 views

Does preload_replace not work in stash:embed templates?

This is a fairly straight forward question... Does preload_replace not work in stash:embed templates? In my embed templates, I tend to set a bunch of preload replace variables for things like channel ...