Forums / Setup & design / template problem solved at last

template problem solved at last

Author Message

Tore Åbodsvik

Saturday 25 October 2003 7:50:57 pm

I just want to share some information, so i hopefully can help somebody to not waste hours just to find out the same as i did.

System: Ez publish 3.0_2.
Os: Win Xp.

I am setting up a test site, and one of the first thing i did, was to alter the site.ini file.

DefaultAccess="designname"

Then created the folder: \Settings\siteaccess\"designname".
and create the site.ini.append file inside this folder

Went on to create the next folder: \design/"designname"\
and the following folder inside this folder:

Stylesheets -- Css file
Override -- Templates
images -- images used by templates

sub folders inside override is as follows:
Override
-- Templates

I created the pagelayout.tpl file for standard viewing when the user came to the www.designname.com.

Then i logged in ez publisher 3 admin section.
Created 2 folder in the Content area.
1. Home
2. Away

Got in the Set up area. clicked on Sections in the left menu.
And there i created 2 new sections.
1. Home - Id:11
2. Away - Id:12

After that pushed the paper clip so that i could assign the new sections to the folder in Content area.

Eg: Home folder -> section 11
Away folder -> section 12

Then logged out.

Created the following files in the \design\"designname"\Override\Templates

1. pagelayout_section_11.tpl (for the Home folder)
2. pagelayout_section_12.tpl (for the Away folder)

Then everything should be ok?

(Links is now in the pagelayout.tpl set to go to the right folder/section)

I go to the site, click on the Home link, but nothing happens.
I click on the Away link nothing happens other then i get the pagelayout.tpl over and over again.

Tried to adjust every possible thing araoud the system. But nothing helps.

Then after aproximate 8 hours i remove the pagelayout.tpl file.

VOILA. Everything is A OK.

It seems that the pagelayout.tpl takes presedence no matter what.

even if the pagelayout.tpl file lies in the
\design\"designname"\Template folder it takes presedence over pagelayout_section_XX.tpl files.
(As i tried this afterwards)

There is no mentioning of this in any documentation, and i wasted a perfectly good day just finding out this simple thing.

I hope this can help someone, so they dont have to waste their time...

regards Tore

Arash Molavi

Sunday 26 October 2003 8:06:35 am

Actually you can change the content layout by going to:
http://www.yoursite.com/index.php/your_design/setup/templateview/node/view/full.tpl

Tore Åbodsvik

Sunday 26 October 2003 8:22:06 am

But it wasn't the changing of the content that was the problem. It was the way the Ez system handles the tpl files. The pagelayout.tpl i prefered over all the others, no matter what.

Arash Molavi

Tuesday 28 October 2003 5:14:43 am

You do the same as you do with template ovverides in /node/view/full.tpl.

Now you go to:
http://www.yoursite.com/index.php/admin/setup/templateview/pagelayout.tpl and add a new template override. That's it:D

eZ debug

Timing: Jan 31 2025 01:05:44
Script start
Timing: Jan 31 2025 01:05:44
Module start 'content'
Timing: Jan 31 2025 01:05:44
Module end 'content'
Timing: Jan 31 2025 01:05:44
Script end

Main resources:

Total runtime0.1976 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0085 587.9453370.2969
Module start 'content' 0.00850.0171 958.24221,005.5156
Module end 'content' 0.02570.1718 1,963.75783,900.9688
Script end 0.1975  5,864.7266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00532.6946200.0003
Check MTime0.00150.7354200.0001
Mysql Total
Database connection0.00090.477410.0009
Mysqli_queries0.088244.62611410.0006
Looping result0.00120.61841390.0000
Template Total0.171286.710.1712
Template load0.00090.463710.0009
Template processing0.170386.187710.1703
Override
Cache load0.00070.330110.0007
Sytem overhead
Fetch class attribute can translate value0.00180.896010.0018
XML
Image XML parsing0.00030.140210.0003
General
dbfile0.01738.7376200.0009
String conversion0.00000.002530.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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