eZ Community » Forums » Discussions » Transforming jQuery plugins into eZ...
expandshrink

Friday 11 February 2011 1:06:54 pm - 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.

 

Sunday 13 February 2011 11:12:47 pm

Really interesting tutorial Thiago.

Monday 14 February 2011 9: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.

Saturday 26 February 2011 11: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!

Saturday 26 February 2011 2:40:58 pm

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

Monday 28 February 2011 4:41:28 pm

Thanks Thiago!

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

Thursday 03 March 2011 3:38:06 pm

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.

Friday 01 April 2011 3:41:09 pm

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

Thursday 12 May 2011 2:11:35 pm

Thanks Tiago!!!

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

Thursday 12 May 2011 3:42:42 pm

Thanks Tiago!!!

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

Awesome happy.gif Emoticon

Wednesday 01 June 2011 1:57:22 pm

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

Modified on Friday 03 June 2011 12:04:36 am by Thiago Campos Viana

Wednesday 01 June 2011 7:34:19 pm

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

Cheers ! 

Modified on Wednesday 01 June 2011 7:34:50 pm by Nicolas Pastorino

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from