eZ Community » Forums » Discussions » Creating Custom Admin Modules & Views
expandshrink

Monday 18 April 2011 11:42:35 pm - 9 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.

 

Wednesday 20 April 2011 8:45:36 am

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!

Wednesday 20 April 2011 10: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 !

Wednesday 20 April 2011 11: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 !

Tuesday 26 April 2011 1:39:22 pm

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

Wednesday 02 November 2011 9:41:55 am

Fantastic article David, thank you!  It's very well-written, clear and easy to follow.  

A small edit you might like to make.  In the code for 7.3.2 eZ Publish 4.3 onwards, you have left in the comment after the template factory statement when it is no longer relevant.  If readers are not familiar with what the comment refers to they may find it confusing:

 $tpl = eZTemplate::factory();//this line of code is for ez Publish 4.3, replace it with the following lines for versions prior to that

What follows is the new code that readers are to add to the file, rather that the pre 4.3 version of the template init.

Another thing I noticed is that in 8.2 Creating our new view - Template file, the form in the template code doesn't have an action attribute.  I guess the action attribute should point to "newsletter/sendemail". 

Cheers,

Fraser

Thursday 15 March 2012 4:15:22 pm

Hi, found an error in userlist.tpl.

Line:

<tr class="eq($counter|mod(2),0)}bglight{else}bgdark{/if}">

Replace by:

 <tr class=" {if eq($counter|mod(2),0)}bglight{else}bgdark{/if}">

Modified on Thursday 15 March 2012 4:28:55 pm by Nicolas Pastorino

Thursday 15 March 2012 4:35:07 pm

Quote from Vova Kedramon :

Hi, found an error in userlist.tpl.

Line:

<tr class="eq($counter|mod(2),0)}bglight{else}bgdark{/if}">

Replace by:

 <tr class=" {if eq($counter|mod(2),0)}bglight{else}bgdark{/if}">

Fixed, thanks !

Wednesday 30 January 2013 7:56:38 pm

On the 4th page of the web tutorial (or 6.2 in the pdf) there is a section “Creating the view PHP file” where you create the custom PHP file for the View. However, you don’t tell where it should be located or with which name. Could you please tell?

I am all new to eZ, and this tutorial seems to be a good starting point trying it out.

Thursday 31 January 2013 10:10:36 am

in the directory of your module. And you can name it what ever you want.

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from