Adding a link in pagelayout

Author Message

Pascal France

Sunday 12 February 2006 5:11:34 am

Hi,

I have an image in

RootDocument/Mes_images/firefox1.png

and I would like to insert it on the right of my site logo.
In pagelayout.tpl I've added the line 59:

     58 {/cache-block}
     59 <a class="firefox" href="http://frenchmozilla.sourceforge.net/firefox/" alt="Téléchargez Firefox"><img src="../../Mes_images/firefox1.png"></a>
     60
     61     {section show=ezini('Toolbar_top','Tool','toolbar.ini')|count}

But each time I display another page, the path of the image is no more good.

Is there someone who could show me the right syntaxe I have to use ?

Regards

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

André R.

Sunday 12 February 2006 8:56:32 am

alt 1:
use absolute src path like http://www.mydomain.com/some_path/my_img.gif

alt 2:
Upload this image to your design/images directory and let ez set the path.
Se the TSCM step-by-steb guide for a introduction to change your design
http://ez.no/products/ez_publish_open_source_enterprise_cms/documentation/building_an_ez_publish_site/prerequisits

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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:18:42
Script start
Timing: Jan 31 2025 06:18:42
Module start 'layout'
Timing: Jan 31 2025 06:18:42
Module start 'content'
Timing: Jan 31 2025 06:18:42
Module end 'content'
Timing: Jan 31 2025 06:18:42
Script end

Main resources:

Total runtime0.0144 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.0053 588.1328151.2109
Module start 'layout' 0.00530.0026 739.343836.6484
Module start 'content' 0.00790.0050 775.992290.2656
Module end 'content' 0.01290.0015 866.257829.9922
Script end 0.0144  896.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002215.4151140.0002
Check MTime0.00106.7653140.0001
Mysql Total
Database connection0.00074.975010.0007
Mysqli_queries0.002919.792730.0010
Looping result0.00000.097410.0000
Template Total0.00128.110.0012
Template load0.00096.012910.0009
Template processing0.00032.062610.0003
Override
Cache load0.00053.301810.0005
General
dbfile0.00138.827980.0002
String conversion0.00000.054540.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