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.

Comments

mfb’s picture

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.

upupax’s picture

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.

mwskuzzy’s picture

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

Thanks