Hi Rob Loach,

I am still new to jQuery Tools and was wondering where and in which file I should add the following command: jquerytools_add() ?

Thank you for your anticipated help.

Loralon

Comments

eloralon’s picture

Component: Code » User interface
Category: task » support

Hi Rob Loach,

I am still new to jQuery Tools and was wondering where and in which file I should add the following command: jquerytools_add() ?

Thank you for your anticipated help.

Loralon

robloach’s picture

Status: Active » Postponed (maintainer needs more info)

It works from modules and some theme templates that you're using. Depends how you're using it.

eloralon’s picture

Thanks for your reply,

Can I add it then to template.php, node.tpl.php or to some other files before it can work?

Thank you.

Loralon

glen201’s picture

Wow, sux that this question has been hanging out there for so long! Anyone maintaining this forum?

I'm having a problem running the jquerytools_add("overlay"), etc. from my page-specific.tpl.php file, and I just went to this forum to see if there would be any help on the subject.

Apparently not.

:(

--glen

robloach’s picture

At that point, it must mean that the scripts variable has already been output. Not sure where you could stick it though. Sometimes it's best to call this function from the module-layer.

chris.jichen’s picture

I agree with this opinion.

I have tried to add the jquery tool function to my front page tempalte file, but it doesn't work , so I have to move the code into the deeper layer. Which is not elegant at all.