Friday 11 February 2011 4:06:54 am - 11 replies

» Read full tutorial

Introduction

In this tutorial we will see the main steps to transform a jQuery plugin into an eZ publish extension, in this case an eZ flow block.

 
Author Message

Romeo Antony

Sunday 13 February 2011 2:12:47 pm

Really interesting tutorial Thiago.

Donat Fritschy

Monday 14 February 2011 12:36:22 am

Very nice tutorial, thank you.

I wanted to point out that since eZ 4.2 you can use "lib" directory within your extension, for which the Apache Rewrite rules pass through all request. This allows external libraries, which often combine js and css code and images, to be kept together in this directory.

http://www.webmanufaktur.ch - Developers united in eZ Publish: http://www.cjw-network.com

Sandra Parente

Saturday 26 February 2011 2:29:27 am

I need some help to make it work.

First problem:

no .css and .js were loaded until I changed this line in contentslider.tpl :

{ezscript_require( array('ezjsc::jquery.js','jquery.jcarousel.min.js', 'jquery.pikachoose.js') )}

Now I can see .js in the source, but carousel and links don't work, I only see one main photo and bottom small photos. Can you give me some more tips, and a more detailed example of the slide class?

Thanks Thiago!

Sandra Parente
www.netbliss.it

Thiago Campos Viana

Saturday 26 February 2011 5:40:58 am

"

I need some help to make it work.

First problem:

no .css and .js were loaded until I changed this line in contentslider.tpl :

{ezscript_require( array('ezjsc::jquery.js','jquery.jcarousel.min.js', 'jquery.pikachoose.js') )}

Now I can see .js in the source, but carousel and links don't work, I only see one main photo and bottom small photos. Can you give me some more tips, and a more detailed example of the slide class?

Thanks Thiago!

"

Here's the zip of the extension I'm using on my site: http://ezextensions.googlecode.com/files/contentslider.zip

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

Sandra Parente

Monday 28 February 2011 7:41:28 am

Thanks Thiago!

Just a question: install.txt refers to a package to be installed, where can I find it?

Sandra Parente
www.netbliss.it

Thiago Campos Viana

Thursday 03 March 2011 6:38:06 am

"

Thanks Thiago!

Just a question: install.txt refers to a package to be installed, where can I find it?

"

Actually I reuse my old extensions a lot, sometimes I just forget to remove/edit some files.

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

Mutunga Mutua

Friday 01 April 2011 6:41:09 am

Thanks Thiago,

I have successfuly incorporated the contentslider in my website. I am unable to use it for other classes like articles. But thats ok if only i could hyperling the images so that when clicked the image takes u to the relevant article. I have seen that your is working here. Kindly assist me with this.

Thanks in advance

Alejandro Dominguez

Thursday 12 May 2011 5:11:35 am

Thanks Tiago!!!

I have followed this tutorial and now I have an amazing slideshow integrated with my eZ site!

Nicolas Pastorino

Thursday 12 May 2011 6:42:42 am

"

Thanks Tiago!!!

I have followed this tutorial and now I have an amazing slideshow integrated with my eZ site!

"

Awesome :)

--
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

Thiago Campos Viana

Wednesday 01 June 2011 4:57:22 am

How to use it with ezwebin:

{def $valid_nodes = fetch( 'content', 'list',hash( 'parent_node_id',  slide_images_folder_id ))}
...
{def $myblockid=concat('myblockid',rand( 1, 1000 ))}

Replace $block.id with $myblockid. I know it's a very noob tip, but I received an email asking me about how to adapt the code..

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

Nicolas Pastorino

Wednesday 01 June 2011 10:34:19 am

Thanks Thiago. It IS good to give detailed advices, to experts and beginners.

Cheers ! 

--
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

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

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 17 2025 21:13:37
Script start
Timing: Jan 17 2025 21:13:37
Module start 'layout'
Timing: Jan 17 2025 21:13:37
Module start 'content'
Timing: Jan 17 2025 21:13:37
Module end 'content'
Timing: Jan 17 2025 21:13:37
Script end

Main resources:

Total runtime0.2057 sec
Peak memory usage4,096.0000 KB
Database Queries107

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 597.9219152.1563
Module start 'layout' 0.00530.0031 750.078139.5391
Module start 'content' 0.00840.1957 789.61721,081.2031
Module end 'content' 0.20410.0015 1,870.820334.4766
Script end 0.2056  1,905.2969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00301.4718160.0002
Check MTime0.00120.6063160.0001
Mysql Total
Database connection0.00070.333510.0007
Mysqli_queries0.114055.41071070.0011
Looping result0.00070.32411050.0000
Template Total0.178987.020.0894
Template load0.00211.024120.0011
Template processing0.176885.943720.0884
Template load and register function0.00010.053610.0001
states
state_id_array0.00060.309620.0003
state_identifier_array0.00120.605930.0004
Override
Cache load0.00190.9167720.0000
Sytem overhead
Fetch class attribute name0.00100.4697190.0001
Fetch class attribute can translate value0.00040.205970.0001
class_abstraction
Instantiating content class attribute0.00000.0131230.0000
XML
Image XML parsing0.00482.350470.0007
General
dbfile0.00321.5782520.0001
String conversion0.00000.002940.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
12content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
2content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
19content/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
11content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
3content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 56
 Number of unique templates used: 10

Time used to render debug report: 0.0001 secs