Questions tagged [embeds]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
19
votes
6answers
2k views

Stash vs. Embeds

I am using Stash only recently and was wondering how the performance is boosted over using embeds? I know there are a few less queries used in general, and I know you can subvert the parse order, but ...
10
votes
2answers
4k views

Stash Embeds - Trying to be DRY

I'd like to know if/how Stash embeds could be used in a particular way. I'm trying to keep things DRY. Generally my templates look something like this: _wrapper.html <html> <body> &...
8
votes
3answers
1k views

Wygwam - automatically wrap media embed with custom html

I'm using Wygwam on a site, and I'm allowing content administrators to embed media (specifically, videos) within the main, body copy/content area. Is there a way to automatically wrap the embedded ...
5
votes
2answers
206 views

Preferred method for site-specific content in MSM “child” sites?

I'm building a set of sites with MSM and intend to use a "parent" site for the organization to publish most of the common content that will be used for each of the "child" sites. Think of a restaurant ...
4
votes
3answers
460 views

setting a global var in an embedded template with PHP

I have a header template with PHP parsing on Input an the following code: <?php $this->EE->config->_global_vars['user_language'] = "nl"; ?> When I use {user_language} in my header ...
4
votes
3answers
98 views

Need help cutting back on embeds when using Tags from Solspace

I have a channel listing characters in a TV show. On the index page of that channel, I display a visual index to all characters. The index looks like this and it uses Solspace's Tags module to pick ...
4
votes
1answer
404 views

Embeds in stash don't work when using process=“end”

A stripped down example: {exp:stash:get_list name="sidebar" process="end"} {embed="templates/sidebar-events" limit="3"} {/exp:stash:get_list} The embed tag doesn't get parsed at all, it just ...
4
votes
1answer
599 views

SEO Lite & Switchee

OK, so i've had a great deal of help on here on the rebuild of my site, and I'm onto the last part which is to make sure my pages meta, titles etc are working well. I have switched (pun) a lot of my ...
4
votes
2answers
183 views

issue with fixed_order and embed query

I’m having some issues with the fixed_order parameter. I’m running a query to order by a matrix col {embed="_includes/_ajax_results" entry_ids="{exp:query sql="SELECT entry_id FROM ...
4
votes
2answers
139 views

Using Stash Embeds for common elements such as call to actions

It seems to me that using Stash Embeds with variables could be a really powerful way to keep things really dry. I was wondering if anybody uses them to create consistent elements throughout their ...
3
votes
4answers
261 views

How to 'embed' a template from within a plugin

In a plugin is it possible to output the equivalent of {embed="my_template"} if a certain condition is met? My site index file is as follows at the moment, with php enabled and set to input: <?...
3
votes
2answers
2k views

dynamically displaying page titles

I have always displayed a channel entry's title like so: {exp:channel:entries channel="news"}{embed="partials/.header" page_title="{title}"}{/exp:channel:entries} Body {embed="partials/.footer"} ...
3
votes
2answers
192 views

Self-Referenced Relationships

I've set up three relationships in my products channel, pointing at...wait for it...the products channel. They're called also_like_1, 2 and 3. In my main template, inside my {exp:channel:entries ...
3
votes
2answers
224 views

embed within loop always getting wrong variable

When I use an embed tag within either an exp:query or exp:channel:categories loop, the outcome is the same: the embedded template erroneously receives the same variable over and over. Pretend we have ...
2
votes
2answers
366 views

Embed, Stash Conditionals problem

I have this code {if {embed="common/.get-gender-url-title" chosen_gender_id="{exp:stash:get name='chosen_gender_id'}"} != 'male'} I get this error Parse error: syntax error, unexpected '{' in .../...
2
votes
1answer
48 views

Anyone know how to limit the number of entries displayed between a set of tag pairs embedded in other tag pairs?

I'm embedding a set of tag pairs with another set of tag pairs, but because there are two entries that meet the criteria of the outer tag pairs, EE's displaying the embedded tag pairs twice. My code ...
2
votes
1answer
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 ...
2
votes
2answers
150 views

Getting specific code into the <head> section from within channel entries

I edit an old, large EE1 site with lots of weblog articles, some containing flash content. We want to change that content into HTML5/css/java but that requires specific code to get into the head ...
1
vote
3answers
499 views

Stash Embed Not Parsing

I used this technique on a site I just built with EE 2.7.0 and Stash 2.3.9. Now I'm trying the same technique on EE 2.7.2 and Stash 2.4.7, and it's not working! This is a simplified version just to ...
1
vote
2answers
105 views

Embeds with single page design?

I'm creating a single-page portfolio site using jquery scrollto and easing, etc. For ease of editing, I'm seriously considering creating each "Section" on the main page as its own template and then ...
1
vote
4answers
2k views

Embedding Channel Entry Tag Pair within another Channel Entry Tag Pair

I am using ExpressionEngine 2.5.2. I am trying to set up an instance where one channel entry is embedded within another. I found this question on StackOverflow and tried the method described in the ...
1
vote
2answers
56 views

Possible to do conditionals on embeds?

Is it possible to do conditionals for embeds? For example,lets say I have this very simple template, test/foo {if foo} yes {if:else} no {/if} In other templates, I want to use this embed in a ...
1
vote
1answer
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
1answer
392 views

Alternative ways to pass embed variables

Is there an alternate way to pass embed variables other than passing them as attributes?
1
vote
3answers
251 views

Repeating layout blocks within and across pages without a bunch of embeds?

I've currently got a project on my plate where content is presented in blocks of a few different styles, for instance: A: Introduction area with large graphic, headline, and copy B: Carousel/slider ...
1
vote
2answers
194 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 ...
1
vote
1answer
63 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 ...
1
vote
2answers
2k views

Display content if url segment does not match a url_title

I am using pages to display content on a page called Speed Sales. I display the entry by checking for segment_2 and matching it to a channel entry basically. I need to display content in case someone ...
1
vote
1answer
321 views

Embed an exp:channel tag into Wygwam

Is it possible to put a exp:channel entries tag loop into a wygwam field? Simply placing something, e.g., {embed="Common/sidebar_people" show_channel="48"} ... fails. The "Allow EE Code" plugin I ...
1
vote
2answers
637 views

Embed variables in the Query Module for expressionengine

Having an issue with the following sql within the query module. SELECT exp_channel_titles.entry_id, exp_channel_titles.title, exp_channel_titles.url_title, exp_channel_titles.status, ...
1
vote
1answer
130 views

How do I embed a slide deck from Slideshare

what´s the best way to embed an iframe from Slideshare into an entry? Here´s an example. <iframe src="http://de.slideshare.net/slideshow/embed_code/17368866" width="427" height="356" frameborder="...
1
vote
1answer
61 views

Agressive template caching in EE1

I've got an old EE1 site that I'm doing some minor updates to but I'm finding that it is very aggressively caching embedded templates. This means that when I make a change it doesn't appear on the ...
1
vote
1answer
55 views

embed member information in another member's profile

I am using zoo visitor, safecracker and solspace user to enable a site member to act as an agent and register other client members to the site. These new members are linked to the agent via a hidden ...
1
vote
2answers
467 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 ...
1
vote
1answer
104 views

Stash embeds containing multiple nested plugins doesn't retrieve anything

I'm trying to do some stash embeds but when embeds contain nested plugins (so, more than one) he doesn't retrive any value. {my_loop}{stash:embed name="my_total{count}" file_name="_stash:...
1
vote
2answers
464 views

Channel Entries Search Returning No Results

I have a routine that searches for an existing customer, based on their member email address. I'm passing the email address as an embed variable: {embed="delivery/charter_customer_form" cust_email="{...
1
vote
1answer
84 views

I need help with some strange EE1 behavior

I have an EE1 site I created a few years ago that was chugging along happily until just recently. I had upgraded it to 1.7.3 about a year ago but beyond that there has been very little that was done ...
1
vote
1answer
1k views

Display Choice from Select Dropdown Custom Field in Sidebar

This is taken from this previous thread but I still can't get the answer. Can someone help me? Basically I am looking to be able to display different sidebar options dependant on what option is ...
1
vote
1answer
68 views

SafeCracker and embedding templates - channel data lost?

I have a SafeCracker form. In order to maximize code reused, I have broken the form into embeddable fieldsets, with each fieldset containing embedded fields. (Basically, I can just embed fields as I ...
1
vote
2answers
96 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
0answers
61 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 ...
1
vote
1answer
310 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 ...
1
vote
0answers
63 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:...
1
vote
0answers
296 views

Channel field not showing on page with embedded template using Multi-Site Manager

I am using ExpressionEngine 2.5.2 with Multisite Manager. I have one template embedded within another. The parent template is pulling data from 2 sites, and I would like certain information to show up ...
1
vote
1answer
193 views

Display embedded templates inside a conditional statement if checked on publish page

In short: I need to display embedded templates based on whether they are selected by checkbox on the publish page, but my code doesn't work if more than 1 is checked. I tried using the code below to ...
0
votes
1answer
101 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} ...
0
votes
2answers
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
2answers
828 views

Passing an embed variable in a parameter of a tag

I don't think that the parse order would make this code below work {exp:channel:entries entry_id="{embed='common/.get-entry-id-based-on-some-complex-logic'}" } Is there a way to make embed tag be ...
0
votes
2answers
123 views

Editor ability to attach “events” to a page

I have the need to allow site editors to be able to create groups of "events" and assign a title, body, icon, etc to those events, order them, and place them where they like inside of their "pages". ...
0
votes
1answer
183 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 ...