Installed Corporate Template, how do i add a gallery to it?

Author Message

lionel low

Thursday 22 April 2004 2:29:27 am

I have searched through the forum and have not been able to find the answer and so decided to post this hoping that someone could point me in the right direction.

I have installed the Corporate template and would like to also have a gallery in the corporate website. How would i go about doing it?

I have tried going into the admin sections of the demo gallery and looked at the .tpl files under >Setup>templates>node/view/full.tpl and copied out the gallery.tpl and album.tpl and added it to the corporate site. I dont know if i am doing it right or do i need to make extra changes to the sql file?

Please point me in the right direction. Thanks

James Packham

Thursday 22 April 2004 4:05:59 am

It sounds like you're just starting out in ez publish and to answer your question properly would be quite long winded. I'd recommend you do the building an ez publish site tutorial, that'll help you understand a little better how ez works.

The Corporate "template" is just an example of what you can do with ez, you're much better off designing your own site from scratch and learning as you go along.

Regards,

James

lionel low

Thursday 06 May 2004 12:52:19 am

Followed your advice and did the tutorials. I sorta understand how the whole template thing works. I realized I liked the corporate template look and would just like to add a gallery to it.

So I created classes for both the album and gallery exactly as the gallery template. Then created templates for both album.tpl and gallery.tpl. However nothing shows up when i created the content. Any other suggestions will be helpful. Or confirmation that i am on the right track.

Lionel

Tore Skobba

Thursday 06 May 2004 1:35:39 am

Hi

Have you remembered to set the overrides, i.e your new classes uses the correct templates. Secondly, if you made new classes you must also check the permissions, i.e. can anonymous user view the new classes? By default he can NOT VIEW THEM. Login into admin and go to user, then check anonymous role and add your new classes.

Cheers
Tore

Kai Winnem

Monday 10 May 2004 6:24:51 am

Hi, I have been trying to do exactely the same with limited success. The overrides we need to set, are they these:

[gallery]
Source=node/view/full.tpl
MatchFile=gallery.tpl
Subdir=templates
Match[class]=<class_node>

[album]
Source=node/view/full.tpl
MatchFile=album.tpl
Subdir=templates
Match[class]=<class_node>

??? Thanks!

Kai Winnem

Sunday 16 May 2004 12:01:49 pm

Found them: KERNEL/setup/packages/gallery/files/default/design.gallery/override/templates

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