We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Using Template Partials in EE3

How Do I?

Roscoe's avatar
Roscoe
9 posts
about 9 years ago
Roscoe's avatar Roscoe

Hi,

I am trying to use the new Template Partials in EE3.

When I create them it creates a folder /system/user/templates/default_site/_partials and in it are..

header.html footer.html nav.html

In my index I try to embed with

{embed="_partials/header"}

or

{embed="_partials/header.html"}

with no luck. Any ideas how I embed these new partials?

       
Pedro Guimaraes's avatar
Pedro Guimaraes
170 posts
about 9 years ago
Pedro Guimaraes's avatar Pedro Guimaraes

Partials are not templates, therefore not embeddable. You just do {header}

Furthermore, I highly suggest giving them some sort of identification when naming them, like {par_header}

       
Roscoe's avatar
Roscoe
9 posts
about 9 years ago
Roscoe's avatar Roscoe

great, thanks.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.