Questions tagged [embeds]
The embeds tag has no usage guidance.
97
questions
0
votes
1
answer
34
views
How to list all Playa choices for a given entry in a multi-entry listing
I want to create an XML file that can list multiple entries - straightforward enough. But for each entry, I also want to list all of the sibling entries chosen in the Playa field for that entry. That'...
0
votes
1
answer
34
views
EE 5 - Code snippet in template appearing and disappearing on website
I have an code snippet embedded in one of my pages, that will disappear, and then, if I go into EE, open the template, see that yes it is there, and close the template, then it’s there again on the ...
0
votes
1
answer
44
views
call template partial using a channel field?
I am not sure if what I am trying to do is possible. I am definitely not succeeding.
What I need is to have a channel field that calls a template partial, preferably a text field where I can type in ...
0
votes
2
answers
45
views
Parsing issue with Low Variable - Playa field (EE 2.11.9)
Obscure issue for you here.
I have a Low Variable (using Playa) that contains several entries. I need to pass the entry_id for each entry to an embedded file. When I do this, the embed loads, but the ...
0
votes
1
answer
28
views
Doubt about a Stash Embed parameter : name"my_var1"
I have a doubt about a Stash Embed parameter. In the Stash documentation page, there is this example:
{stash:embed name"my_var1" file_name="foo:bar" stash:my_var="value 1"}
{stash:embed name"my_var2" ...
0
votes
2
answers
137
views
How can I pass the category ID of the current entry into the exp:calendar:cal tag?
I have an entry assigned to a specific category. I want events from exp:calendar:cal that share the same category to be displayed on the same page. When I hard code the category ID it works like a ...
0
votes
2
answers
113
views
Next / Prev Linking Of Entries in Relationship Field
I have a channel called "course_content" that contains a relationship field which holds entries from a "lesson_content" channel.
The user clicks on a course (course_content) and all of the lessons ...
0
votes
1
answer
73
views
Pull dynamic entries using Ajax template on multiple Structure entries with Relationships
I've created two separate Structure entries, both using the Page template below with Relationship entries. It works fine if I only want one page, but I've made a second page to pull different ...
1
vote
2
answers
101
views
Is there a way to embed a page within another page?
I'm not talking about embedding another template.
I'd like to embed all the child pages of a parent within the parent (for incredibly convoluted reasons).
I'm using Structure if that helps.
Using {...
1
vote
2
answers
213
views
can I put markup inside an iframe tag in a rich text field?
I need to support embedded tweets in Facebook Instant Articles. Oob the way to do that is to wrap Twitter's embed code blockquote.twitter-tweet in figure.op-interactive iframe (here's a link to ...
0
votes
1
answer
104
views
passing a category id to an embed
I'm trying to pass a category id to an embed like so:
{if local_ratings=="Los Angeles"}
{embed="embeds/ratings" cat="22"}
{/if}
The "local_ratings" is an EE dropdown.
In my embed I have:
{exp:...
0
votes
1
answer
85
views
EE embed inside stash parse process end
can I do an embed within a stash:parse with process end?
{exp:stash:parse process="end"}
{embed="index/.homeFeatured"}
{/exp:stash:parse}
I just got the the embed line printed on the screen, ...
0
votes
1
answer
54
views
stash embed in expression engine layout not parsing
I would like to embed my ads by a stash embed inside of my base template, is this not possible to achieve thay way?
{layout:set name="backgroundAd"}
{stash:embed context="ech/ads" name="background" ...
0
votes
1
answer
94
views
Limit conditional results inside of channel entry
I have a channel entry that I want to display limited results and also only show results with a certain conditional applied to it.
Right now I am opening the channel entry and setting a limit inside ...
0
votes
2
answers
111
views
Stash Embed Variable Assignment
I have two Stash embeds. Both embed templates accept a color variable, but it's optional:
{if '{stash:color}'}
{stash:color}<br>
{/if}
If I explicitly set the variable in both embeds, ...
0
votes
2
answers
99
views
Cannot make stash:get to show up inside exp:channel tag
Problem:
A value set is not parsed inside a channel:entries tag.
The value is actually set (and parsed with the embed on the page).
Also, when I hard-code the value in te channel:entries tag the ...
0
votes
2
answers
93
views
How do you conditionally embed a template based on template name?
I have created a .header template that goes in all of the content templates on a site. However, there are only two templates that require additional jQuery code inside the .header template. I don't ...
0
votes
2
answers
309
views
Embeds not working
I building a super simple site on EE 3.0.3. and am having a seemingly weird issue where my embeds are not loading. I'm sure it something simple but I'm not able to see what is going wrong. The live ...
0
votes
0
answers
54
views
embed template showing erorr
When embedding a template gets error message described in the image attached.. need an immediate help.. thank you
{html-head}
{global-stylesheets}
{js-header}
{main-nav}
{main-nav-2}
{html-head-end}
&...
0
votes
1
answer
113
views
Caching embedded templates with variables
If you embed a template A into template B, using embed variables, and you switch on template caching on template A. Does template A get cached multiple times according to the embed variables? Or is ...
1
vote
0
answers
67
views
Hero picture showing in all pages (languages) with the exception of one page (Dutch)
I have recently started working on EE (ex WordPress guy). I am using version ExpressionEngine2.10.1. I did not developed the site, I am just debugging and resolving issues. It is a multi-language site ...
0
votes
1
answer
83
views
Embed not updating
We have an embed that shows latest posts on the home page.
{embed="/embeds/.sidebar_articles}
This works. But when I go to change anything in it, such as filtering the posts or even just making a ...
0
votes
1
answer
62
views
Template won't embed on one entry page but fine on everything else
I'm trying to add my embedded contact form template to one page for a blog entry. I've never had an issue with this template or embedding it until now.
Here is my code.
{embed="inc/html_header" ...
1
vote
1
answer
64
views
Render embed tags Shine pdf
I want to use the module Shine pdf to generate pdf's. Only problem is it doesn't render embed tags in the template.
I would like to change the code in the module so it would render embed tags. This ...
0
votes
1
answer
56
views
Date range in EE postmaster template
I have a notification setup that is pulling the top 5 most viewed entries within the specific channel, and I want to send this email with the top 5 most viewed entries, and I want to send this ...
0
votes
2
answers
126
views
Template embedded in channel entry loop returns same data in each loop
I am having a strange issue in my product listing template. Basically I have 2 channels. First channel say items stores the product information like product name, sku, company id etc and other channel ...
1
vote
1
answer
321
views
Escape characters when passing variables to an embeded template
I have an embed template to which I'm passing variables from some custom channel fields. Everything works as expected until there are quotes (") inside the variable.
For example, I have the variable ...
0
votes
1
answer
51
views
Garbled stash:nocache output when in stash:set_list in a nested embed
I'm putting together a sort of ViewModel-ish setup and getting strange output from {stash:nocache}
Here's the setup. First, the EE template:
{stash:embed
context="@URI"
file_name="viewmodels:...
1
vote
2
answers
480
views
Insert Code into Middle of Channel Entry Post
I have a channel that stores ads (HTML ads I created and the Google Adsense Code block), and displays either my html or Google's JS to allow a random ad on each page load. I want to insert that ...
0
votes
1
answer
187
views
Pass variables through playa loop to use in an embed?
Currently I have a a channel page entry that then goes through a playa of secondary entries.
I'd like to pass some of the parent's data like page title and description to the embdeds.
My code looks ...
0
votes
1
answer
5k
views
A PHP Error was encountered Severity: 8192
I have some php code that I have embedded. Which seems to work fine alone on the server however when embedded I get this error.
A PHP Error was encountered
Severity: 8192
Message: Function split() ...
0
votes
1
answer
166
views
Next/Previous Entry Linking works on some entries but not others
I setup the next/previous entry linking code in an embed because it is positioned within a channel entries tag in the template. Same template, some entries display the links fine, and others don't. ...
0
votes
1
answer
332
views
Can you embed a Grid field?
I ran into a situation in which I need to pass a Grid field via embed. Is there a good way of doing this? I won’t know how many entries (rows) have been entered. I have set a max to five (5) and there ...
0
votes
2
answers
92
views
Loading of data (40+ fields) for multiple (250+) entries on single page
I am querying whether this is a good idea, and if so best way to do it.
I have a channel (club_listing) that contains 40+ fields.
There are 250+ club_listing entries.
On my clients current/old site, ...
0
votes
1
answer
573
views
Embed variable not parsing in channel:entries loop
I'm passing a variable into an embed file. I can output the value of the variable inside the embedded template no problem but when I use it in an channel:entries loop I'm not getting a result. Hard ...
0
votes
1
answer
19
views
1 include - 2 templates - 2 different results
I have an include / embed file that is being shared across two templates. However one template is displaying a result of the channel:entries tag in the embed whilst the other refuses to display a ...
0
votes
1
answer
164
views
Checking for custom field with conditional inside of an embed template
I've decided to just test an idea for custom meta tags on every page without using Low Variable and try a native approach. The idea is to use an embed template with embed variables to check if a ...
0
votes
1
answer
87
views
ExpressionEngine: How do I block direct access to templates that I am using for embeds only
I have a template group that I am using to store embeds like header and footer. I do not want people to be able to directly access those templates by going to www.domain.com/embeds/header. I want that ...
0
votes
1
answer
105
views
Embed variables aren't correctly parsed in the low search result parameters
Embed variables aren't correctly parsed in the low search result parameters
I have this code for my low search results.
{exp:low_search:results
{if embed:author_id}author_id="{embed:author_id}"{/if}
...
1
vote
1
answer
127
views
How do I allow users to add a snippet without having to access the template?
I want to setup a bunch of snippets (or even embeds?) and give users the ability to place these within their pages, but without having to create special templates or pre-defining where in the template ...
1
vote
0
answers
64
views
Help embedding categories into Switchee value field
I’m trying to embed categories into a Switchee value field but can’t get it to work. Can you help?
To try to deal with the parsing order problem, I call the Switchee embed from my site/index template:...
0
votes
1
answer
48
views
how to define the stash embedded template?
I would like to use the Stash embed functions, but I don't know how to define the template path.
In the Stash docs:
{!-- Stash template file at /path/to/stash_templates/test.html --}
{stash:embed ...
2
votes
1
answer
42
views
Upgrading from 2.5.5 to 2.8 with tons of embeds and reverse related entries?
I am working on a site using 2.5.5 and it uses embeds and related entries quite heavily. The embeds are used to hand parsing data the way the site requires it.
q1 Should I upgrade straight to 2.8 or ...
0
votes
2
answers
1k
views
what does it means: {embed:entry_id}?
I would like to know about the usage of {embed:entry_id}.
It is used in case an entry_id is inside an embedded template?
There are other usages?
0
votes
1
answer
60
views
Random template embedding?
I know you can easily load a random entry from a channel, but I wanted to know if the functionality exists in EE to randomly embed and load a template from a group?
Thanks in advance for any guidance ...
0
votes
2
answers
341
views
Dynamically create swiper based on images in wygwam field
I'm using ExpressionEngine and have a wygwam field that takes html formatting, including img tags. I was wondering how I could dynamically create a swiper based on these images? I was thinking that if ...
0
votes
1
answer
31
views
Embed Error Debugging
Is there a way to display debugging information for an embed tag?
I can't use the administrator template debugging feature since the page I put the embed tag into is only accessible to non-logged in ...
0
votes
1
answer
21
views
Embed not embedding, but only for 1 member group
My template's <head> tag is defined as a snippet combined with preload replace variables, as per Low's idea (http://gotolow.com/blog/snippets-and-preload-replace-variables). On one or two ...
0
votes
1
answer
152
views
Embedding PHP in EE tags or using equivalent expressions in PHP
There are so many essential things you simply can't do with EE; this is one I'm having issues with.
What I want to do:
Use AJAX to GET a template while sending data via the URL segments.
In the ...
0
votes
2
answers
107
views
Having embeded include use channel fields
I am using BrilliantRetail and on my product page, I have tabs with different information about the products. The code for the tabs is pretty long so I would like to make it an include and then embed ...