Custom Template Selection in Admin

Author Message

Oliver Frommel

Tuesday 18 September 2007 7:23:15 am

Hello,

while we have our site running with ezPublish already I still did not complete understand how the template assignment in either the files on the file system (override.ini etc) and the assignment in the admin interface go together.

Is eZ just writing to that same ini files when I change something in the admin interface (I could not make that work most of the time. For instance no new templates got created)? I'd rather not write on the file system if it is possible to avoid it.

The reason I am asking is because we want to implement an admin page for users, similar to the "Design" tab in the regular admin interface. They should be able to choose from several basic designs with according templates. As a basic prototype I'd like to implement an admin page where they can choose from say a one column layout (template a) and a two column layout (template b). How can I implement something like this?

Thanks
Oliver

Betsy Gamrat

Saturday 29 September 2007 6:40:42 pm

Oliver,

Turn on debugging (template debugging, templates used) to see the templates used to deliver the page content.

Identify the template you would like to modify and then navigate to Design > Templates. Enter the name of the template into the Filter box and press enter. The system should find one or more templates. Choose the appropriate template and click on it.

Create an override by selecting the admin siteaccess and then edit it.

That will also update the ini files.

Good luck,

Betsy

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.