Questions tagged [template-partials]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
44 views

Use php inside entry-field instead of snippet

How is it possible to use php inside an entry-field? When I write e.g. in the summary-field test <?php echo 'bla'; ?> test I get exactly the same string in the frontend: test <?php echo '...
0
votes
1answer
21 views

Template partials within a template partial (is that OK?)

I have a template partial within another template partial. And that seems to work. Is this a coincidence or correctly so? If it is correct, where to stop with such a nesting? A partial that has a ...
0
votes
1answer
36 views

How to delete template variables, template partials, templates completely in EE5?

Templates, partials and template variables are automatically stored as files since EE4. But they are also stored in the database (in the tables exp_global_variables, exp_templates, exp_snippets - note ...
0
votes
1answer
30 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
1answer
59 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 ...
0
votes
1answer
46 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
118 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
115 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
48 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
264 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
77 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
876 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
71 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
53 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
2answers
360 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
78 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
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 ...
0
votes
2answers
106 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
339 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
239 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
186 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
207 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
597 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?) ...