Forums / Install & configuration / How to make New design extension

How to make New design extension

Author Message

paul bolger

Monday 01 September 2008 4:56:45 pm

Can anybody point me to a succinct guide to making a new design extension? A plain install with the website interface seems to have settings and design files in both the /design and /settings folders as well as the extension, although the design folders are empty. Are these all necessary?

Paul Bolger

André R.

Tuesday 02 September 2008 10:12:09 am

The design folder is created by the installer and can safely be removed (might be the one used if you create a template override with the admin interface though).

As for creating extension there is a article on it:
http://ez.no/developer/articles/an_introduction_to_developing_ez_publish_extensions

But might not be what you where looking for?

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

Andrew Duck

Wednesday 17 September 2008 10:13:57 am

Hi Paul,

I am unaware of a short guide to design extensions at the moment, though it certainly is something I will consider writing in the near future if others are looking for similar information.

In short you are looking to replicate the identical directory structure from a normal design in the /design folder.

Your new extension, for instance "myext" with a design "mydesign".

/extension/myext/design/mydesign

Within this design you would have folders for images, javascript, override/templates, stylesheets and templates as per the ezwebin and similar extensions.

The one other thing that is required is a settings folder: /extension/myext/settings/ with a design.ini.append.php file specifying:

<?php /* #?ini charset="utf-8"?

[ExtensionSettings]
DesignExtensions[]=myext

*/ ?>

Once you have activated your extension via the administration interface (Setup -> Extension) or via settings/override/site.ini.append.php, eZ Publish will check within your activated extensions and register the fact that <i>myext</i> contains a design.

You can then specify that design name, <i>mydesign</i> within your siteaccess [DesignSettings] block.

I hope that provides a quick overview as to how you can get up and running with your design inside an extension. If you run into any problems shoot back more questions :)

Regards,
Andrew.

Andrew Duck, Executive Director, Quiqcorp Limited
eZ Certified Developer and Trainer.
Member of the Community Project Board
http://quiqcorp.com | http://twitter.com/andrewduck

DeAndre Johnson

Monday 03 November 2008 8:12:59 pm

Yes I also would like for a guide to making a new design extension. That would be a great thing to have.

I am, because I choose to be!

eZ debug

Timing: Jan 19 2025 02:36:21
Script start
Timing: Jan 19 2025 02:36:21
Module start 'content'
Timing: Jan 19 2025 02:36:22
Module end 'content'
Timing: Jan 19 2025 02:36:22
Script end

Main resources:

Total runtime1.1498 sec
Peak memory usage4,096.0000 KB
Database Queries201

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 589.0781180.8203
Module start 'content' 0.00670.9617 769.8984649.8672
Module end 'content' 0.96830.1814 1,419.7656337.3750
Script end 1.1497  1,757.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.4076210.0002
Check MTime0.00160.1398210.0001
Mysql Total
Database connection0.00100.089810.0010
Mysqli_queries1.060592.23522010.0053
Looping result0.00250.21341990.0000
Template Total1.109296.520.5546
Template load0.00220.192820.0011
Template processing1.107096.276420.5535
Template load and register function0.00010.007510.0001
states
state_id_array0.00130.114510.0013
state_identifier_array0.00180.160920.0009
Override
Cache load0.00190.1631290.0001
Sytem overhead
Fetch class attribute can translate value0.00170.146550.0003
Fetch class attribute name0.00140.118980.0002
XML
Image XML parsing0.00290.250850.0006
class_abstraction
Instantiating content class attribute0.00000.001080.0000
General
dbfile0.00330.2901480.0001
String conversion0.00000.000530.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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: 20
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs