Where is the article template file?

Author Message

R Sutton

Thursday 09 August 2007 3:34:27 pm

Hi all,

I am trying to find the article template so I can copy it and edit it for an override. I would like to stop the summary from displaying at the top of the full article view. Is there another way to do this in a setting somewhere or do I need to et my hands dirty with a custom template and an override?

Thanks!

paul bolger

Thursday 09 August 2007 5:10:40 pm

Hi R

If you want to see which templates are in use turn these settings on in Quicksettings for your siteaccess.

Template debug
Inline template debug

I think you will have to override the template. One way to start is to copy the present one to somewhere in your siteaccess overrides, override the original and then edit the copy. Bear in mind though, that that many of the generic templates may seem pretty complicated as they are designed to work in any situation. If you write your own from scratch you can write specifically for your use-case.

Take a look at 'building an EzPublish site'

http://ez.no/content/download/48190/124975/version/1/file/building.pdf

for some basics.

Paul Bolger

R Sutton

Thursday 09 August 2007 5:36:05 pm

Thanks Paul!

I am doing that now. Will that tell me directories of the template files in use as well. The templates seem buried and I cannot seem to locate any tpl file called "article" to copy and start from. Thanks for the tips. I am liking this system and wondering why I never found it before now. Have used textpattern for years, but I am starting to get more "enterprise" type requests that it just can handle without major backend hacking and this really fits the bill as I slowly get my head around it.

paul bolger

Thursday 09 August 2007 6:11:37 pm

It will tell you which directory the templates are kept. Bear in mind that a lot of the templates are nested, so look for the one which encapsulates your content.

When you do create an override be aware that it's better for the override to have a different name, and be in a different directory (/my siteaccess/override/templates/my_custom_templates rather than /my siteaccess/override/templates/content/view -or whatever) to that of the original.

Paul Bolger

R Sutton

Friday 10 August 2007 8:46:11 am

Thanks for the push Paul. You got me going!

Cheers!

R Sutton

Friday 10 August 2007 9:32:31 am

For anyone else who may find this thread looking for this information. The summary in article full view and image in article full view can simply be toggled from content.ini from your site settings-ini section in the Admin area without doing any override templates. Cool :)

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