Questions tagged [preload-replace]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-2 votes
1 answer
46 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
Scott S. Bateman's user avatar
0 votes
2 answers
36 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"} {...
Andrew's user avatar
  • 393
0 votes
1 answer
108 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: ...
ByteMyPixel's user avatar
0 votes
2 answers
170 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-...
jrrdnx's user avatar
  • 139
0 votes
1 answer
312 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 ...
Andrew Armitage's user avatar
1 vote
1 answer
764 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 ...
MB34's user avatar
  • 330
0 votes
2 answers
210 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: ...
Michael's user avatar
  • 131
3 votes
2 answers
208 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='{...
Brian Peddle's user avatar
3 votes
1 answer
307 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 ...
Jean St-Amand's user avatar