Mootools only in the articles

Premium sports magazine Joomla template with clean, easy to customize and unique design.
GK User
Thu Dec 06, 2012 1:56 am
Hi and sorry for my english :D , is possible disabler Mootools only in " www. x .com/menu_category " and not also automatically in " www. x .com/menu_category/every_k2_article.html " ? because if I set the id of the menu_category ( they are connected to the k2 categories) in TEMPLATE --> FEATURES --> "Mootools library on pages" --> "disabled" --> "add rule" , also in the articles, belonging to these categories, mootools is disabled .

if I was not clear, I have another example :)

Gavick HomePage . Mootools must be disable in menu_category "blog" but must be enable in its articles .

What can I do ?

best regards, Massimo.
User avatar
Fresh Boarder

GK User
Thu Dec 06, 2012 9:28 am
Hi,

Sorry there is no way to do this, because the articles are usually connected with their category menu item ID what causes your problem.
User avatar
Administrator

GK User
Thu Dec 06, 2012 2:43 pm
dziudek wrote:Hi,

Sorry there is no way to do this, because the articles are usually connected with their category menu item ID what causes your problem.


Hello and thanks for the reply. I have an idea, if I disable mootools on every page and then I recall it only in k2 articles adding some lines of code in item.php? could be a solution?
User avatar
Fresh Boarder

GK User
Thu Dec 06, 2012 4:50 pm
Yes, it can be a solution ;)
User avatar
Administrator

GK User
Thu Dec 06, 2012 4:59 pm
dziudek wrote:Yes, it can be a solution ;)


ok, thank you :) but not knowing in detail the php, can you help me ? or this is not included in the "Personal Joomla Membership" ?
User avatar
Fresh Boarder

GK User
Thu Dec 06, 2012 5:05 pm
In general custom works like this, which needs bigger ingerence into our framework are not available in the personal membership. So you have two ways - you can upgrade your license to the Developer memebership and send your request through our ticket system with all necessary access data (FTP and administrator access) or you can contact i.e. with teitbite (our moderator) to do this task with additional fee.
User avatar
Administrator

GK User
Thu Dec 06, 2012 5:14 pm
dziudek wrote:In general custom works like this, which needs bigger ingerence into our framework are not available in the personal membership. So you have two ways - you can upgrade your license to the Developer memebership and send your request through our ticket system with all necessary access data (FTP and administrator access) or you can contact i.e. with teitbite (our moderator) to do this task with additional fee.


ok, thank you very much ! but is possible at least know how to call the mootools files in k2 item.php ?
User avatar
Fresh Boarder

GK User
Thu Dec 06, 2012 5:18 pm
In my opinion you have to use in the template header the JRequest class to check if the displayed page is a K2 item page (by checking the URL parameters values) and then include the script tag with path to the mootools library.
User avatar
Administrator

GK User
Thu Dec 06, 2012 5:27 pm
dziudek wrote:In my opinion you have to use in the template header the JRequest class to check if the displayed page is a K2 item page (by checking the URL parameters values) and then include the script tag with path to the mootools library.


Perfect, thank you, I think it is the best solution. Only the last thing: on what files should I work, in your opinion ?
User avatar
Fresh Boarder

GK User
Thu Dec 06, 2012 5:38 pm
In the layouts/head.php file ;) Additionally you should remove the mootools-related code using the code fragments from the lib/gk.framework.php and lib/helpers/helpers.mootools.php files.
User avatar
Administrator

GK User
Thu Dec 06, 2012 5:52 pm
dziudek wrote:In the layouts/head.php file ;) Additionally you should remove the mootools-related code using the code fragments from the lib/gk.framework.php and lib/helpers/helpers.mootools.php files.


thank you :) thank you :) thank you :D ! I'll try to implement the thing , I hope to succeed :mrgreen:
User avatar
Fresh Boarder


cron