Forums / Discussions / Creating Custom Admin Modules & Views

Monday 18 April 2011 2:42:35 pm - 4 replies

» Read full tutorial

Introduction

In this tutorial we will explore how to add custom modules and views to the CMS. By doing this you can extend the functionality of the back office to use your custom PHP to carry out various tasks. Once this tutorial is complete you should be comfortable with creating modules and views for any siteaccess with the CMS and be able to appreciate situations when creating custom modules and views would be suitable.

 
Author Message

Lars Eirik R

Tuesday 19 April 2011 11:45:36 pm

Thanks for this great tutorial. It will help many newcomers to ez publish in creating their own modules and views and understand the ezpublish logic behind these concepts.

Just wanted to inform you that i believe you have the incorrect syntax when describing unordered_parameters. You have indicated they should be /key/value, whereas the correct syntax is (key)/value i believe.

Keep up the good work!

Nicolas Pastorino

Wednesday 20 April 2011 1:04:38 am

Thanks for the heads-up Lars Eirik, i will be notifying the author in a second about this.

If you are willing to contribute other beginner-level tutorials like this, send them in ! We NEED more of those to expand our community and welcome new members.

Cheers and god pÄske !

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Nicolas Pastorino

Wednesday 20 April 2011 2:31:50 am

"

Just wanted to inform you that i believe you have the incorrect syntax when describing unordered_parameters. You have indicated they should be /key/value, whereas the correct syntax is (key)/value i believe.

"

And fixed !

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Gaetano Giunta

Tuesday 26 April 2011 4:39:22 am

Also a good link: the reference on modules on ezpedia: http://ezpedia.org/ez/module

Principal Consultant International Business
Member of the Community Project Board

You must be logged in to post messages in this topic!

eZ debug

Timing: Jan 17 2025 17:51:22
Script start
Timing: Jan 17 2025 17:51:22
Module start 'content'
Timing: Jan 17 2025 17:51:22
Module end 'content'
Timing: Jan 17 2025 17:51:22
Script end

Main resources:

Total runtime0.4273 sec
Peak memory usage4,096.0000 KB
Database Queries212

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0081 596.0703180.8359
Module start 'content' 0.00810.1733 776.9063874.5703
Module end 'content' 0.18150.2458 1,651.4766340.6953
Script end 0.4272  1,992.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.8836210.0002
Check MTime0.00140.3357210.0001
Mysql Total
Database connection0.00080.180710.0008
Mysqli_queries0.332677.83172120.0016
Looping result0.00200.47562100.0000
Template Total0.387390.620.1936
Template load0.00200.469920.0010
Template processing0.385390.162020.1926
Template load and register function0.00010.027810.0001
states
state_id_array0.00210.486720.0010
state_identifier_array0.00130.307530.0004
Override
Cache load0.00170.3890240.0001
Sytem overhead
Fetch class attribute name0.00150.342080.0002
Fetch class attribute can translate value0.00140.339240.0004
class_abstraction
Instantiating content class attribute0.00000.003790.0000
XML
Image XML parsing0.00190.449140.0005
General
dbfile0.00671.5727390.0002
String conversion0.00000.001230.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.tplforum_topic/full.tplextension/community_design/design/suncana/override/templates/forum_topic/full.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/separator.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltags/separator.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs