Questions tagged [template-partials]

The tag has no usage guidance.

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

WYSIWYG-editor removes template partials/template variables

I am using Wygwam as WYSIWYG-editor. Now when I add a template variable or template partial inside an html-tag in a field which uses Wygwam it will be removed when switching from source to visual. ...
BNetz's user avatar
  • 470
0 votes
2 answers
56 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 '...
BNetz's user avatar
  • 470
0 votes
1 answer
34 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 ...
Werner Gusset's user avatar
0 votes
1 answer
66 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 ...
BNetz's user avatar
  • 470
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 ...
user1469's user avatar
  • 291
0 votes
1 answer
65 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 ...
pcgben's user avatar
  • 101
0 votes
1 answer
53 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 ...
nibb11's user avatar
  • 47
0 votes
1 answer
156 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?
dot voice's user avatar
0 votes
3 answers
122 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 ...
soire's user avatar
  • 15
1 vote
0 answers
55 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 ...
Thomas Hartmann's user avatar
1 vote
1 answer
273 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 ...
ccomer's user avatar
  • 11
0 votes
1 answer
83 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 ...
Stuart Thornton's user avatar
1 vote
2 answers
1k 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"...
user7013's user avatar
0 votes
1 answer
72 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-...
user3369105's user avatar
0 votes
2 answers
54 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" ...
doubleplusgood's user avatar
0 votes
2 answers
455 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 ...
LeBlaireau's user avatar
0 votes
1 answer
82 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> <...
nageeb's user avatar
  • 266
3 votes
2 answers
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"} ...
Brad's user avatar
  • 572
4 votes
2 answers
140 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 ...
Mutual's user avatar
  • 1,449
0 votes
2 answers
111 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 ...
ExpressionEngineNewbie's user avatar
0 votes
2 answers
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. ....
stef's user avatar
  • 113
1 vote
1 answer
242 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 ...
David S's user avatar
  • 143
0 votes
5 answers
191 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 ...
David S's user avatar
  • 143
0 votes
0 answers
211 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-...
CreateSean's user avatar
  • 4,757
7 votes
2 answers
606 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?) ...
Natetronn's user avatar
  • 2,654