Hello,
I am using PhocaGallery 2.7.5 on Joomla 1.5.21 for a client, an old install that we've inherited. Everything is working beautifully with one exception: We need to display one of the Categories initially (which works), but the Category in the left menu isn't highlighted (not given the class nodeSel). After the user selects one of the Categories (even the same one) it works great and shows the color change for the Category.
My question is simply: how can I trigger the Category to show as active (assign it the class nodeSel when the Gallery is first opened, before the user picks a Category by hand?). I was poking around in dtree.js earlier, but decided I should ask the experts first!
Thanks in advance and all the best,
Caleb
.nodeSel for default Category Selection
-
Jaquith
- Phoca Newbie

- Posts: 3
- Joined: 22 Nov 2011, 19:48
- Jan
- Phoca Hero

- Posts: 49150
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: .nodeSel for default Category Selection
Hi, is the link in standard Joomla! menu or in some module?
If you find Phoca extensions useful, please support the project
-
Jaquith
- Phoca Newbie

- Posts: 3
- Joined: 22 Nov 2011, 19:48
Re: .nodeSel for default Category Selection
Hi,
Thanks for the response! The Category link is in the standard PhocaGallery Category-based menu. You can see what I mean on this page: http://test.above-berlin.de/index.php?o ... &Itemid=30
The top Category (AWEAR rises ABOVE) simply needs to be highlighted on the page load, before anything is clicked, to indicate that the album is currently being shown.
Cheers,
Caleb
Thanks for the response! The Category link is in the standard PhocaGallery Category-based menu. You can see what I mean on this page: http://test.above-berlin.de/index.php?o ... &Itemid=30
The top Category (AWEAR rises ABOVE) simply needs to be highlighted on the page load, before anything is clicked, to indicate that the album is currently being shown.
Cheers,
Caleb
- Jan
- Phoca Hero

- Posts: 49150
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: .nodeSel for default Category Selection
Hi, then this should be stylized by the template (it should stylize active menu link :idea)
If you find Phoca extensions useful, please support the project
-
Jaquith
- Phoca Newbie

- Posts: 3
- Joined: 22 Nov 2011, 19:48
Re: .nodeSel for default Category Selection
Hi,
Thanks again for the reply, but I feel like I'm not making my question clear. Let me try again.
The problem is a javascript one. Basically there are 2 Albums in the menu that is generated by dtree.js, and one of them (AWEAR rises ABOVE) opens by default when the PhocaGallery module is opened. The problem is, that the highlight showing the active Album only happens AFTER a user clicks, which launches a Javascript function that both opens the selected Album AND assigns that menu node the class "nodeSel".
My question is: how can I assign that CSS class to the proper (first) node in the menu upon generation so that it is highlighted by default? I assume it will require a little javascript editing in dtree.js.
Cheers,
Caleb
Thanks again for the reply, but I feel like I'm not making my question clear. Let me try again.
The problem is a javascript one. Basically there are 2 Albums in the menu that is generated by dtree.js, and one of them (AWEAR rises ABOVE) opens by default when the PhocaGallery module is opened. The problem is, that the highlight showing the active Album only happens AFTER a user clicks, which launches a Javascript function that both opens the selected Album AND assigns that menu node the class "nodeSel".
My question is: how can I assign that CSS class to the proper (first) node in the menu upon generation so that it is highlighted by default? I assume it will require a little javascript editing in dtree.js.
Cheers,
Caleb