Hot answers tagged

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 ...
user avatar
  • 11.3k
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 ...
user avatar
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 ...
user avatar
  • 1,079
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 ...
user avatar
  • 2,255
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 ...
user avatar
  • 17.4k
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....
user avatar
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: ...
user avatar
  • 376
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 ...
user avatar
  • 2,418
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 ...
user avatar
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 ...
user avatar
  • 3,572
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 ...
user avatar
  • 4,885
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-...
user avatar
  • 418
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 ......
user avatar
  • 3,163
1 vote
Accepted

EE embed inside stash parse process end

Stash will not parse EE embeds, only it's own embeds.
user avatar
  • 5,234
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 ...
user avatar
  • 5,234
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 ...
user avatar
  • 464
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}" == "...
user avatar
  • 506
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.
user avatar
  • 11
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 ...
user avatar
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 ...
user avatar
  • 2,255
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 ...
user avatar
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}} ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible