- Posts: 10
- Thank you received: 0
[SOLVED] Tree renders but no expand/collapse controls
- djacouma
-
Topic Author
- Offline
- New Member
-
Less
More
13 years 2 weeks ago #1004
by djacouma
Tree renders but no expand/collapse controls was created by djacouma
Hello again --
I've installed and published the module, and the tree renders but no there are no expand/collapse controls as in the demo. ; just black and clear bullets next to each category.
Site is Running on Twitter's Boostrap template with Gantry.
Joomla 2.5.7 stable, PHP 5.3.18, K2 2.6.21
No other k2 non k2 core modules/plugins enabled.
Inside K2 config:
• K2 CSS enabled
• jQuery library handling set to "Load v1.8.x latest (remote copy)"
• Backend jQuery and jQuery UI handling set to "Load a remote copy of jQuery and jQuery UI"
Please advise!
Output screenshot here:
I've installed and published the module, and the tree renders but no there are no expand/collapse controls as in the demo. ; just black and clear bullets next to each category.
Site is Running on Twitter's Boostrap template with Gantry.
Joomla 2.5.7 stable, PHP 5.3.18, K2 2.6.21
No other k2 non k2 core modules/plugins enabled.
Inside K2 config:
• K2 CSS enabled
• jQuery library handling set to "Load v1.8.x latest (remote copy)"
• Backend jQuery and jQuery UI handling set to "Load a remote copy of jQuery and jQuery UI"
Please advise!
Output screenshot here:
Please Log in or Create an account to join the conversation.
- mmmaug1977
-
- Offline
- Moderator
-
13 years 2 weeks ago #1005
by mmmaug1977
Replied by mmmaug1977 on topic Re: Tree renders but no expand/collapse controls
Hello,
From the screenshot, I can guess your site has a javascript problem, this can happen in 2 cases:
1- Your template based on mootools,for example, and a conflict occurres between jquery and mootools.
2- Your template based on jquery, so jquery is loaded twice by K2 and our module.
Please view the page source and make sure that you don't have one of these cases.
From the screenshot, I can guess your site has a javascript problem, this can happen in 2 cases:
1- Your template based on mootools,for example, and a conflict occurres between jquery and mootools.
2- Your template based on jquery, so jquery is loaded twice by K2 and our module.
Please view the page source and make sure that you don't have one of these cases.
Please Log in or Create an account to join the conversation.
- djacouma
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 0
13 years 2 weeks ago - 13 years 2 weeks ago #1006
by djacouma
Replied by djacouma on topic Re: Tree renders but no expand/collapse controls
Thanks for the rapid response.
Twitter's boostrap template with gantry is based on Jquery -- no mootools.
www.prieco.com/en/jbootstrap/about-jbootstrap.html
I've disabled jquery load by k2 and no effect.
Mootools is not on the site as far as I know, and definitely not in the page source where the tree module is published.
I also published the module to non-k2 pages (core joomla) with the same result.
Any other ideas?
Addendum:
There are two errors on the page as well:
Uncaught TypeError: Object [object DOMWindow] has no method 'addEvent'
Uncaught ReferenceError: Hash is not defined
Not sure if that adds any light?
Twitter's boostrap template with gantry is based on Jquery -- no mootools.
www.prieco.com/en/jbootstrap/about-jbootstrap.html
I've disabled jquery load by k2 and no effect.
Mootools is not on the site as far as I know, and definitely not in the page source where the tree module is published.
I also published the module to non-k2 pages (core joomla) with the same result.
Any other ideas?
Addendum:
There are two errors on the page as well:
Uncaught TypeError: Object [object DOMWindow] has no method 'addEvent'
Uncaught ReferenceError: Hash is not defined
Not sure if that adds any light?
Last edit: 13 years 2 weeks ago by djacouma. Reason: Additional info
Please Log in or Create an account to join the conversation.
- mmmaug1977
-
- Offline
- Moderator
-
13 years 2 weeks ago #1007
by mmmaug1977
Replied by mmmaug1977 on topic Re: Tree renders but no expand/collapse controls
If you can send the url of the page showing the module this will be helpful to solve the problem.
Otherwise, please attach a screenshort for the head part from the page source.
Otherwise, please attach a screenshort for the head part from the page source.
Please Log in or Create an account to join the conversation.
- djacouma
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 0
13 years 2 weeks ago #1010
by djacouma
Replied by djacouma on topic Re: Tree renders but no expand/collapse controls
I found the culprit. Turns out that bootstrap templates are set up to strip out mootools and some other custom js from pages. By disabling this feature, despite risking conflicts, everything is fine now. When I have time, I plan to implement one of the approaches listed in this blog -- cleaner than allowing a free for all with jquery/mootools etc. Sharing for reference.
www.acuit.com.au/Blogs/removing-jcaption-in-joomla2.5.html
Thanks for your help!
www.acuit.com.au/Blogs/removing-jcaption-in-joomla2.5.html
Thanks for your help!
Please Log in or Create an account to join the conversation.
- mmmaug1977
-
- Offline
- Moderator
-
13 years 2 weeks ago #1011
by mmmaug1977
Replied by mmmaug1977 on topic Re: Tree renders but no expand/collapse controls
Great to hear that the problem is solved 
Feel free to ask for help if any other problem.
Hope you can write a review on JED if possible to support the module.
Hav a nice time
Feel free to ask for help if any other problem.
Hope you can write a review on JED if possible to support the module.
Hav a nice time
Please Log in or Create an account to join the conversation.
- nikanic
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
12 years 2 months ago #1322
by nikanic
Replied by nikanic on topic Re: Tree renders but no expand/collapse controls
Hi
I have this problem too. I have sent you in private message pass to see how the problem will be solved.
Please help me.
I have this problem too. I have sent you in private message pass to see how the problem will be solved.
Please help me.
Please Log in or Create an account to join the conversation.
- mmmaug1977
-
- Offline
- Moderator
-
12 years 2 months ago #1332
by mmmaug1977
Replied by mmmaug1977 on topic Re: Tree renders but no expand/collapse controls
Hi Danyal,
The problem is fixed now.
The problem was the remote copy of jquery is not accessible from your server, I don't know why, you can check this with your server administrator.
I fixed the problem by setting K2 to use the local copy, and it works now.
The problem is fixed now.
The problem was the remote copy of jquery is not accessible from your server, I don't know why, you can check this with your server administrator.
I fixed the problem by setting K2 to use the local copy, and it works now.
The following user(s) said Thank You: nikanic
Please Log in or Create an account to join the conversation.
- nikanic
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
12 years 2 months ago #1338
by nikanic
Replied by nikanic on topic Re: Tree renders but no expand/collapse controls
Dear Mohamed Abdelaziz,
Hi
Thank you for your help and I wish for you more success in your great works in the future.
Hi
Thank you for your help and I wish for you more success in your great works in the future.
Please Log in or Create an account to join the conversation.
- mmmaug1977
-
- Offline
- Moderator
-
12 years 2 months ago #1340
by mmmaug1977
Replied by mmmaug1977 on topic Re: Tree renders but no expand/collapse controls
Thanks Danyal, I wish you success in your project.
I will be happy to read your review about this module at JED, if you like to support it.
I will be happy to read your review about this module at JED, if you like to support it.
Please Log in or Create an account to join the conversation.