Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [template-partials]

The tag has no usage guidance.

0
votes
1answer
23 views

Using a Template Variable in a Model

I'd like to use a template variable {product_minimum_order_value} in a product model. Channel fields are accessible in template code using {django_syntax}, however I would like to use them in the ...
-1
votes
1answer
34 views

Channel entries vs embed files

I’m having sort of a dilemma and since I never actually used channels in EE (yes, that is strange) except for a blog section I was curious what the real benefit is. I just don’t see it. Let me make ...
0
votes
1answer
30 views

base_url is not being parsed by EE

Is there a reason {base_url} is not being parsed at all in any of my templates? First I thought it was only my css but it also seems not to be working with any other template either like image roots?
0
votes
3answers
92 views

Stash Entry Page Titles

I'm using stash to fuel many parts of a site I am building. I successfully have it working to print certain parts of the page title to the tag of the page, but I want to include entry titles on pages ...
1
vote
0answers
31 views

using stash variable with same name like EE var

loping through channel entries tag, I can use {title} for the title of the article. inside the channel entries loop for the specific article, I use an EE partial with get list inside. Inside the ...
1
vote
1answer
239 views

EE3 Template Partials

I upgraded a dev site to EE3 and my snippets are now placed into two folders, _global_partials and _partials. I can't seem to find the difference on what these folders are. At first I thought it may ...
0
votes
1answer
66 views

Do EE template partials have a preparse function similar to LowVars?

I'm wondering if there is a way to dynamically set variables within a template partial from the point at which it is included. This works in Low Variables as the preparse function, but is there ...
1
vote
2answers
584 views

parse=“inward” question

I have the following tag that creates a simple search form: {exp:search:simple_form channel="{exp:stash:get name='listing_channel'}" result_page="blog/search" no_result_page="blog/search" results="20"...
0
votes
1answer
55 views

layout:contents not showing up in nested template

I have three templates, simplified here for your digestion: First One: {layout="giving/.giving_meta"} <div class="row"> <div class="col-...
0
votes
2answers
49 views

Using Stash to get data from 1 of 2 fields

I'm currently using a template that displays an entry that could come from one of two channels like so; {exp:channel:entries channel="channel1|channel2" status="open" limit="1" ...
0
votes
1answer
242 views

adding a variable to a partial template

I am using creating template parts (header, footer) but would like to know how I can add a variable, a body class to individual templates. I see people are using stash but is there another way to set ...
0
votes
1answer
74 views

How do I resolve this scope issue with Stash?

I'm just playing around with implementing Stash on a site, following the Template Partials Using Stash article, but now I seem to be having a scope/execution order issue. Layout <html> <...
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"} ...
4
votes
2answers
136 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 ...
0
votes
2answers
102 views

Parse Order of embeds that embed

Assume the following: Template A embeds Template B Template B embeds Template C Template C is a simple Channel entries loop that outputs a particular field value In the above setup, nothing is ...
0
votes
2answers
338 views

Is there a way to use global templates in expression engine?

By default, each template in expression engine is an entire template. Is there a way to set a global template, and have each template be inserted as the content section of that template? ie. ....
1
vote
1answer
212 views

Stash, template partials and CE_image

So I have my content that I put on my template article.html via the EE-publishform where I also get to choose wether to use layouts 'normal' or ' wide'. The size of the images varies depending on wich ...
0
votes
5answers
178 views

How to select a template for an entry via publish form

I am experimenting with the template partials approach and try to figure out how to let the client choose a template for the entry he is publishing/editing. Adrienne Travis mentions Blueprints in ...
0
votes
0answers
205 views

Low Variables with Switchee - parse order issue

Hi I'm having a parse order issue that I can't seem to figure out. I have a template that looks like this: some code here <div class="content-line"> {exp:low_variables:parse var="lv-...
7
votes
2answers
583 views

Template partials and caching via Stash and CE Cache

Wondering what the best method is for caching with Stash and or CE Cache when using Template Partials. Some questions come to mind: Is it best to use CE Cache in the wrapper (this seems easiest?) ...