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

Hidden templates don't work anymore

Development and Programming

vw000's avatar
vw000
241 posts
9 years ago
vw000's avatar vw000

It seems in Expression Engine 3 hidden templates use now as default underscore _ instead of a dot.

So I was trying to move my templates to 3 and just to maintain the same structure I configured them back to a dot as the instructions in the docs: $config[‘hidden_template_indicator’] = ‘.’;

But regardless if you use a dot or underscore I noticed hidden templates don’t work anymore when they are embed in other templates.

When I log into Expression Engine I can access them and my pages also work.

When I log out, visitors can’t see them. This was not so in Expression Engine 2. The hidden templates could not be accessed with a direct url but they still worked as embed. Now they don’t work as embed, the part of the code where the hidden template is supposed to appear is blank. Expression Engine is only showing them for the logged in admin.

I also noticed that as Admin I can actually access them directly like: example.com/folder/.template

This explains why my pages also work, as Admin they are available, but for visitors they are not, so pages using the embeds are not working.

Basically, EE 3 is not outputting or processing hidden templates.

       
vw000's avatar
vw000
241 posts
9 years ago
vw000's avatar vw000

I found the problem after I noticed that no embeds where actually working (hidden or not).

It seems when you create a new hidden template its created without access permissions. This was the reason it was not working. You need to assign them the proper permissions after creating them.

I found the solution here: http://expressionengine.stackexchange.com/questions/34727/embeds-not-working

Well, I guess you learn something new each day 😊

I don’t remember setting any access permissions for hidden templates in EE 2, so I assume this is a new behavior.

       
Ingmar Greil's avatar
Ingmar Greil
29,243 posts
9 years ago
Ingmar Greil's avatar Ingmar Greil
I don’t remember setting any access permissions for hidden templates in EE 2, so I assume this is a new behavior.

This is true for all templates, not just hidden ones, and considered a bug. It will be fixed in an upcoming release.

       

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.