Insert jquery plugin in template files

upupax - October 10, 2008 - 22:48
Project:jQuery plugins
Version:6.x-1.5
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

I've tried to add jquery_plugin_add($plugin) to a tpl.php file but nothing happened: is it a missing feature or did I do something wrong?
Thanks.

#1

mfb - October 11, 2008 - 22:12
Status:active» postponed (maintainer needs more info)

Hard for me to figure this out without some sample code to see what you're doing where.

#2

upupax - October 12, 2008 - 11:34

Sorry.
I've added the reflection plugin putting jquery.reflection.min.js in jqueri_plugin folder.
I invoke it in a block inserting jquery_plugin_add('reflection') before printing the block content and I can see all my images with a nice reflection effect.
Then I realize that I would like to have reflection for all my images, not only the ones where block is pubblished, so I decided to put the jquery_plugin_add('reflection') in my template file page.tpl.php, but in this case plugin is not loaded and I can see no reflection.
I assume I'm doing something wrong, but I don't exactly understand what.
Any suggestion will be kindly appreciated.
Thanks in advance.

#3

mwskuzzy - July 14, 2009 - 09:34

Did you ever sort this out? if yes, please provide solution to your problem.

Thanks

 
 

Drupal is a registered trademark of Dries Buytaert.