This extension allows you to determine the default template for static child pages of specified entries within a Structure page tree. You can already do this for listing type entries on a per-weblog basis, but Structure provides no control for static page template inheritance, beyond defaulting to the parent entry’s template when adding a new page.
It’s pretty rudimentary. In the extension settings rules can be specified in a pseudo json format:
"entry_id" : "template_id"For example:
"30" : "61",
"29" : "49",
"4" : "14"So where do you get the entry id and template id? This extension adds the entry id to the tooltip when hovering over an entry in the structure tree, and the template id when hovering over a template name in the template editing panel.
It’s my hope that Travis adds static page template rules to a future version of Structure, but until then this is a crude way to get it done 😊
This resolved the only issue I had with your First Child Redirect plugin, where I had to tell the client to manually change the template settings for any page who’s parent was assigned to a redirect template.
Brilliant. Thanks again.
There seems to be a problem with your extension.
I have a lot of pages in my Structure and on some it cuts of the second digit of the referencing parent entry_id in the “add page” link.
For example:
Edit Link: C=edit&M=edit_entry&weblog_id=2&entry_id=60
Add Page Link: C=publish&M=entry_form&weblog_id=2&parent_id=6&template_id=26
It’s 6 instead of 60, hence it’s not selecting the right parent in the structure dropdown on the edit page.
Greg
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.