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.

eZ debug

Timing: Jan 31 2025 06:20:25
Script start
Timing: Jan 31 2025 06:20:25
Module start 'layout'
Timing: Jan 31 2025 06:20:25
Module start 'content'
Timing: Jan 31 2025 06:20:25
Module end 'content'
Timing: Jan 31 2025 06:20:25
Script end

Main resources:

Total runtime0.0155 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.3906151.2422
Module start 'layout' 0.00590.0030 739.632836.7109
Module start 'content' 0.00880.0054 776.343894.2188
Module end 'content' 0.01420.0012 870.562533.9922
Script end 0.0155  904.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.007346.9325140.0005
Check MTime0.006038.6627140.0004
Mysql Total
Database connection0.00106.435310.0010
Mysqli_queries0.003421.642630.0011
Looping result0.00000.070910.0000
Template Total0.00095.910.0009
Template load0.00074.380610.0007
Template processing0.00021.466410.0002
Override
Cache load0.00053.017410.0005
General
dbfile0.002314.930080.0003
String conversion0.00000.058540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs