Forums / Setup & design / Installed Corporate Template, how do i add a gallery to it?

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

eZ debug

Timing: Jan 19 2025 04:27:24
Script start
Timing: Jan 19 2025 04:27:24
Module start 'content'
Timing: Jan 19 2025 04:27:25
Module end 'content'
Timing: Jan 19 2025 04:27:25
Script end

Main resources:

Total runtime0.9195 sec
Peak memory usage4,096.0000 KB
Database Queries207

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0087 589.2109180.7969
Module start 'content' 0.00870.7771 770.0078609.9609
Module end 'content' 0.78580.1336 1,379.9688337.0234
Script end 0.9195  1,716.9922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.4822210.0002
Check MTime0.00160.1715210.0001
Mysql Total
Database connection0.00100.113010.0010
Mysqli_queries0.838191.13932070.0040
Looping result0.00220.23592050.0000
Template Total0.876495.320.4382
Template load0.00200.220620.0010
Template processing0.874395.084520.4372
Template load and register function0.00020.027110.0002
states
state_id_array0.00320.343510.0032
state_identifier_array0.00190.205620.0009
Override
Cache load0.00170.1896370.0000
Sytem overhead
Fetch class attribute can translate value0.00210.226050.0004
Fetch class attribute name0.00130.138070.0002
XML
Image XML parsing0.00120.134550.0002
class_abstraction
Instantiating content class attribute0.00000.002270.0000
General
dbfile0.00650.7070270.0002
String conversion0.00000.001130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs