4
votes
Embed variables aren't correctly parsed in the low search result parameters
As I told you earlier today, this is not a Low Search issue, but a conditionals parsing issue. If you turn on Template Debugging, you'll see the opening tag just before it is actually executed. It ...
3
votes
Accepted
How do I allow users to add a snippet without having to access the template?
Snippets are not intended to be used by / known by end users. They are developer tools for making your code more DRY - not so much to hold content. This is why the access to them is through the ...
2
votes
Accepted
ExpressionEngine: How do I block direct access to templates that I am using for embeds only
In versions of EE2 prior to 2.9 if you start the template name with a dot it will not be directly accessible.
In the just-released EE 2.9 you can specify a different character instead of dot and ...
2
votes
Loading of data (40+ fields) for multiple (250+) entries on single page
That's a lot of data so in addition to server performance, you want to consider client-side performance and the page weight. You could eliminate or minimize the server-side issue with long caches or ...
2
votes
Accepted
Pass variables through playa loop to use in an embed?
You don't have the embed syntax quite right. Passing {embed:entry_id} is correct, as that tells the channel:entries tag which entry to load. But there are no channel:entries parameters called title or ...
2
votes
A PHP Error was encountered Severity: 8192
If you are using the split method in you php code, you shouldn't. If you see on the documentation page, the split method is being deprecated. You should use one of the alternate functions listed there....
2
votes
Accepted
can I put markup inside an iframe tag in a rich text field?
I solved something simulair with https://devot-ee.com/add-ons/low-replace, an addon from LOW.
I wanted special markup for any <a href in the RTF field. It works like a charm!
In my case like this:
...
2
votes
Accepted
Render embed tags Shine pdf
What you're looking to do is far from trivial, however....
Lets simplify first. Forget the pdf module, I assume you want to render your embed (and any other) tags and push the result into your pdf ...
1
vote
EE 5 - Code snippet in template appearing and disappearing on website
I figured it out. That include was a copy of another include, and so permissions were reset to none. Meaning no one could see it, but if I logged in to check the templates involved, suddenly it ...
1
vote
Accepted
Doubt about a Stash Embed parameter : name"my_var1"
The example you have highlighted is intended to illustrate how you can take advantage of the stash caching system to create multiple cached versions of the same template code based on with different ...
1
vote
Next / Prev Linking Of Entries in Relationship Field
I don't think you need an embed - have you tried the siblings tags?
https://docs.expressionengine.com/latest/fieldtypes/relationships.html#accessing-siblings
Someone has posted a potential solution ...
1
vote
Insert Code into Middle of Channel Entry Post
Another option would to go with a Blocks or Content Elements approach, where your content is actually a list of content building blocks. Then you can have any combination: text-ad-text, text-ad-ad-...
1
vote
Accepted
passing a category id to an embed
I believe you have to use proper tags to access embed vars, ie:
{exp:channel:entries channel="reports" disable="member_data|trackbacks" limit="200" category="{embed:cat}" dynamic="no"} ... stuff ......
1
vote
Accepted
1
vote
Accepted
Stash Embed Variable Assignment
Stash embed variables are available anywhere in the template that is parsed later in the parse order, i.e. they create a variable with global scope. This is by design - so that, for example, child ...
1
vote
Cannot make stash:get to show up inside exp:channel tag
In your embed code you have pasted it looks like you have an extra pipe character in your author_id parameter
author_id="{stash:get name="MedlemLetterAuthor"}|"parse="inward"
makes it a little hard ...
1
vote
How do you conditionally embed a template based on template name?
You will need to determine which template you are on. You should be able to use {template_name} for this. Then a simple conditional will do it:
{embed="inc/.header"}
{if "{template_name}" == "...
1
vote
Embeds not working
When you create a NEW template, all access is set correctly (access for all groups).
When you DUPLICATE a template, all access is removed except for Super Admins.
1
vote
Accepted
Next/Previous Entry Linking works on some entries but not others
Make sure to include the channel parameter into your next and prev entry tags.
I would also look into the url_title parameter because you are embedding these. Just get the segment that has your ...
1
vote
Can you embed a Grid field?
So the channel entries tag that outputs this lives somewhere other than where your navigation is built, I'm assuming. Without seeing your template I couldn't say for sure, but this sounds like a great ...
1
vote
Accepted
Embed variable not parsing in channel:entries loop
I have a sneaky suspicion that the previous page you are embeding from is using something like this:
{embed="foo/bar" member_id="{member_id}"}
{member_id} is a standard global var and does not get ...
1
vote
Accepted
Checking for custom field with conditional inside of an embed template
Your code works ok in EE 2.9 but versions below this, this should work:
{exp:channel:entries channel="{embed:channel}" dynamic="yes"}
{if "{{embed:meta_tag}}" }
{{embed:meta_tag}}
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
embeds × 97stash × 15
templates × 14
channel-entries × 11
ee2 × 8
parse-order × 7
categories × 6
channel × 6
playa × 5
conditionals × 5
php × 5
dry × 5
snippets × 4
template-partials × 4
ee1 × 3
cache × 3
relationships × 2
wygwam × 2
ee3 × 2
search × 2
multi-site-manager × 2
structure × 2
add-on-development × 2
solspace-calendar × 2
javascript × 2