Forums / Setup & design / 3.4 -> pagelayout.tpl. How to add external "module" ?

3.4 -> pagelayout.tpl. How to add external "module" ?

Author Message

laurent le cadet

Wednesday 23 June 2004 8:07:21 am

Hi,

Since the last release of eZp, the pagelayout.tpl is very very different.
It seems to be base on modules which are organise by the Menu Management.

So now there no more <table> in the code of the pagelayout.tpl.

I just want to add few lines :

		{literal}
		<SCRIPT LANGUAGE="JavaScript" SRC="http://www.meteofrance.com/FR/partenaires/vignetteMeteoVille3.jsp?LIEUID=FR29058" TYPE="text/javascript"></SCRIPT>
		{/literal}

To print the weather forecast under the left menu but only on one override pagelayout.
So I can't write the additional script directely in the flat_left.tpl.

I tryed in the pagelayout itself but I can't manage to print it under the left menu with the main content at the right place.

I think it's just a question of stylesheet, but I can't find the solution.

I hope that it is comprehensible.

Laurent.

Alex Jones

Wednesday 23 June 2004 8:39:12 am

Laurent, if it is a stylesheet issue, we will need to see the page and the stylesheet it uses to diagnose the problem.

Regarding flat_left.tpl, can you not copy that file into a new one where you can add the code and then override flat_left.tpl for just the page you want it to show up on?

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

laurent le cadet

Wednesday 23 June 2004 8:47:42 am

Hi Alex,

Everythings seems to be so different that I forgot the basics of eZp. :))
SURE ! I'll override the flat_left.tpl.

Sorry and thanks.

Laurent

Alex Jones

Wednesday 23 June 2004 8:55:16 am

No problem. :) It happens to all of us.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

laurent le cadet

Friday 25 June 2004 2:45:22 am

Hi...back again :)

I told about basics of eZp but the 3.4 is different.
I made a custom flat_left.tpl, my_flat_left.tpl and I put it in .../mysite_design/templates/parts.

But I don't know where and how to declare it for a specific section (I can't find where the original flat_left.tpl is declare).

I need more help. Sorry.

Laurent.

eZ debug

Timing: Jan 19 2025 20:13:07
Script start
Timing: Jan 19 2025 20:13:07
Module start 'content'
Timing: Jan 19 2025 20:13:08
Module end 'content'
Timing: Jan 19 2025 20:13:08
Script end

Main resources:

Total runtime1.1872 sec
Peak memory usage4,096.0000 KB
Database Queries200

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 589.1016180.8125
Module start 'content' 0.00501.0469 769.9141570.6875
Module end 'content' 1.05200.1351 1,340.6016337.3984
Script end 1.1871  1,678.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.3353210.0002
Check MTime0.00150.1250210.0001
Mysql Total
Database connection0.00050.045310.0005
Mysqli_queries1.106193.16872000.0055
Looping result0.00230.19121980.0000
Template Total1.165798.220.5829
Template load0.00200.172520.0010
Template processing1.163798.020020.5818
Template load and register function0.00010.009010.0001
states
state_id_array0.00030.021510.0003
state_identifier_array0.00070.056720.0003
Override
Cache load0.00180.1480400.0000
Sytem overhead
Fetch class attribute can translate value0.00170.147030.0006
Fetch class attribute name0.00180.148470.0003
XML
Image XML parsing0.00160.136330.0005
class_abstraction
Instantiating content class attribute0.00000.0024100.0000
General
dbfile0.00210.1785330.0001
String conversion0.00000.000330.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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/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
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs