Forums / Setup & design / Creating custom design

Creating custom design

Author Message

Ivan Švogor

Tuesday 28 September 2010 7:20:37 am

Hello,

I'm having issues creating my custom desing. I'm simply trying just add some text HELLO or I'M HERE in the pagelayout.tpl . But what ever I do it does not apper. I tryed to edit the one in /design/base and /desing/standard, clear cash from shell but still nothing. What am I doing wrong?

Help file says that pagelayout.tpl is the main template for the whole page. How, or better, where do I edit the existing one?

Matthieu Sévère

Tuesday 28 September 2010 7:30:29 am

Hello Ivan,

Did you try to empty your cache after your modiification ?

Anyway the good way to go is to override existing template and create a new custom design. You should read the template section of the documentation to get the logic : http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Templates

Good luck :)

--
eZ certified developer: http://ez.no/certification/verify/346216

Quoc Huy Nguyen Dinh

Tuesday 28 September 2010 7:49:27 am

Hi Ivan

Are you trying to modify the pagelayout.tpl from /design/base, /design/standard from the root of your eZ installation? If so then you won't be able to do this as most of the time these templates are overriden by an override template from an design extension.

For example if you have installed eZ Publish and have choosen to use ezwebin (Website Interface extension) then ~/design/standard/templates/pagelayout.tpl will be ignored and overriden by ~/extension/ezwebin/design/ezwebin/templates/pagelayout.tpl

It is not recommended to directly modify ~/design/standard/* or ~/design/base/*. It is also not recommended to modify the design templates of ezflow or ezwebin. Instead create your own design templates and copy over templates files from ezflow or ezwebin and modify your copy.

Example:

if you need to modify ~/extension/ezwebin/design/ezwebin/templates/pagelayout.tpl then:

Go to your ez publish root

mkdir extension/mydesign

install -d extension/mydesign/settings

install -d extension/mydesign/design/standard/templates

vi extension/mydesign/settings/design.ini.append.php

<?php /*

[ExtensionSettings]

DesignExtensions[]=mydesign

*/ ?>

cd ..

cp extension/ezwebin/design/ezwebin/templates/pagelayout.tpl extension/mydesign/design/standard/templates/

vi extension/mydesign/design/standard/templates/pagelayout.tpl

make your changes

now activate your extension:

vi settings/override/site.ini.append.php

Look for [ExtensionSettings], then look for ActiveExtensions[]=ezwebin

Add this before that line:

ActiveExtensions[]=mydesign

Clear caches and this should work.

eZ debug

Timing: Jan 18 2025 02:58:03
Script start
Timing: Jan 18 2025 02:58:03
Module start 'content'
Timing: Jan 18 2025 02:58:03
Module end 'content'
Timing: Jan 18 2025 02:58:03
Script end

Main resources:

Total runtime0.1630 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 587.7031180.8516
Module start 'content' 0.00710.0186 768.554797.9609
Module end 'content' 0.02570.1373 866.5156521.9844
Script end 0.1630  1,388.5000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00352.1473200.0002
Check MTime0.00150.9449200.0001
Mysql Total
Database connection0.00100.609710.0010
Mysqli_queries0.102462.78961410.0007
Looping result0.00130.76911390.0000
Template Total0.136883.910.1368
Template load0.00110.664910.0011
Template processing0.135783.225810.1357
Override
Cache load0.00070.448410.0007
Sytem overhead
Fetch class attribute can translate value0.00090.529310.0009
XML
Image XML parsing0.00020.138110.0002
General
dbfile0.01408.5920200.0007
String conversion0.00000.004230.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