- Posts: 5
- Thank you received: 0
always expand all subcategories
- thanili
- Topic Author
- Offline
- New Member
-
Less
More
11 years 10 months ago #1482
by thanili
always expand all subcategories was created by thanili
Hello guys,
i am trying to use your module for displaying a full tree/always visible-expanded of my k2 categories.
their structure is:
Area 1
-- Location 1.1
-- Location 1.2
...
Area 2
-- Location 2.1
-- Location 2.2
...
check here:
www.gv4r.com/index.php?option=com_conten...1&Itemid=382&lang=en
subcategories are not displayed.
i have also hidden all images/controls. i would like to have an always visible category tree structure with a flat layout.
can you help?
i am trying to use your module for displaying a full tree/always visible-expanded of my k2 categories.
their structure is:
Area 1
-- Location 1.1
-- Location 1.2
...
Area 2
-- Location 2.1
-- Location 2.2
...
check here:
www.gv4r.com/index.php?option=com_conten...1&Itemid=382&lang=en
subcategories are not displayed.
i have also hidden all images/controls. i would like to have an always visible category tree structure with a flat layout.
can you help?
Please Log in or Create an account to join the conversation.
- thanili
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
11 years 10 months ago #1483
by thanili
Replied by thanili on topic always expand all subcategories
I have found a relevant line in file: jquery.jstree.js at line 340
// core functions (open, close, create, update, delete)
$.jstree.plugin("core", {
...
load_open : false,
changed to TRUE, when i load the page they seem to be open, but instantly they close again! which other modifications in code do i have to make?
// core functions (open, close, create, update, delete)
$.jstree.plugin("core", {
...
load_open : false,
changed to TRUE, when i load the page they seem to be open, but instantly they close again! which other modifications in code do i have to make?
Please Log in or Create an account to join the conversation.
- mmmaug1977
-
- Offline
- Moderator
-
11 years 10 months ago #1484
by mmmaug1977
Replied by mmmaug1977 on topic always expand all subcategories
Hello,
No need to modify jquery.jstree.js
Try this modification in mod_k2categoriestreeviewpro.php, add this code at line: 46
It should be directly above this line:
Let me know if this worked with you.
BTW, I can't access your website, it needs authorization
No need to modify jquery.jstree.js
Try this modification in mod_k2categoriestreeviewpro.php, add this code at line: 46
Code:
$treeviewJs .= '.bind("loaded.jstree", function (event, data) {
jQuery(this).jstree("open_all");
}) ';
It should be directly above this line:
Code:
if(!$hideRootCat) $treeviewJS .='.bind("loaded.jstree",
Let me know if this worked with you.
BTW, I can't access your website, it needs authorization
Please Log in or Create an account to join the conversation.
- thanili
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
11 years 10 months ago #1485
by thanili
Replied by thanili on topic always expand all subcategories
Thanks for responding!
i tried but it did not work:
www.gv4r.com/index.php?option=com_conten...1&Itemid=382&lang=en
When you click "Destinations" menu item subcategories seem to be opened for some miliseconds but then they close again!
For accessing website:
username: admin
password: 2Ct4GrSv
Do you need FTP access to take a look?
PS. Modification i made:
...
$treeviewJs .= '.bind("loaded.jstree", function (event, data) {
jQuery(this).jstree("open_all");
}) ';
if(!$hideRootCat) $treeviewJS .='.bind("loaded.jstree",
...
i tried but it did not work:
www.gv4r.com/index.php?option=com_conten...1&Itemid=382&lang=en
When you click "Destinations" menu item subcategories seem to be opened for some miliseconds but then they close again!
For accessing website:
username: admin
password: 2Ct4GrSv
Do you need FTP access to take a look?
PS. Modification i made:
...
$treeviewJs .= '.bind("loaded.jstree", function (event, data) {
jQuery(this).jstree("open_all");
}) ';
if(!$hideRootCat) $treeviewJS .='.bind("loaded.jstree",
...
Please Log in or Create an account to join the conversation.
- mmmaug1977
-
- Offline
- Moderator
-
11 years 10 months ago #1486
by mmmaug1977
Replied by mmmaug1977 on topic always expand all subcategories
I can't see the modification in the page source, maybe you need to clear the cache or find out why the modifications does not appear in the page source!
Also, take care to not publish password to the public, if you need to send any passwords, send them via email.
Also, take care to not publish password to the public, if you need to send any passwords, send them via email.
Please Log in or Create an account to join the conversation.
- thanili
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
11 years 10 months ago #1487
by thanili
Replied by thanili on topic always expand all subcategories
I have sent you an email with ftp access details!
Joomla cache is disabled. Also cleared browser cache. Behavior is the same!
Can you have a closer look?
Joomla cache is disabled. Also cleared browser cache. Behavior is the same!
Can you have a closer look?
Please Log in or Create an account to join the conversation.
- thanili
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
11 years 10 months ago #1501
by thanili
Replied by thanili on topic always expand all subcategories
Any help here? Can you please take a look?
Please Log in or Create an account to join the conversation.
- mmmaug1977
-
- Offline
- Moderator
-
11 years 10 months ago #1502
by mmmaug1977
Replied by mmmaug1977 on topic always expand all subcategories
I have provided the code which implements your request, but the code does not appear!!
I don't know why this happens on your server, please contact your server administrator, maybe there is an issue makes this happen.
I will try to add this as a feature in a new release asap.
I don't know why this happens on your server, please contact your server administrator, maybe there is an issue makes this happen.
I will try to add this as a feature in a new release asap.
Please Log in or Create an account to join the conversation.
- gmgroup
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
11 years 6 months ago - 11 years 6 months ago #1642
by gmgroup
Replied by gmgroup on topic always expand all subcategories
Solved
Last edit: 11 years 6 months ago by gmgroup.
Please Log in or Create an account to join the conversation.
- WQY
- Offline
- New Member
-
Less
More
- Posts: 1
- Thank you received: 0
11 years 3 months ago - 11 years 3 months ago #1696
by WQY
Replied by WQY on topic always expand all subcategories
The module does not work correctly.
new.sgc.com.ua/%D0%BE%D1%86%D0%B5%D0%BD%...%B0%D0%BB%D0%B0.html
Help.
new.sgc.com.ua/%D0%BE%D1%86%D0%B5%D0%BD%...%B0%D0%BB%D0%B0.html
Help.
Last edit: 11 years 3 months ago by mmmaug1977.
Please Log in or Create an account to join the conversation.