ZenphotoCMS Forum
different classes for <li>'s in album_menu - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: different classes for <li>'s in album_menu (/thread-3891.html)



different classes for <li>'s in album_menu - fretzl - 2008-10-17

Hi,

I'm working on a modified default theme which uses the "album_menu".

I need to hide one or more ``'s with CSS.

Is it possible to assign different classes to each generated with a non-active link????? (for instance:

I can probably work someting out but I will have to do it all over again with each update..... and I prefer using CSS over JavaScript.

Thanks




different classes for <li>'s in album_menu - acrylian - 2008-10-17

Which album menu version are you using? It actually only shows the albums context sensitive. Or maybe I don't understand what you want to do.

The only way to assign direct classes to each
[*] is to modify/hack the plugin.




different classes for <li>'s in album_menu - fretzl - 2008-10-17

Hi Malte,

I'm using print_album_menu 1.4.5

It generates an unordered list from the populated albums, right ?
Like so:
`

[]tanzania
[
]fliebedie
archief
[*]home

`
What I would very much like is that every has it's unique class-name. Like: or something like that.

That way I can style each `` separately with CSS.

(Ofcourse the `` with the active link in it already gets a class-name and can be styled)

Cheers




different classes for <li>'s in album_menu - acrylian - 2008-10-17

That surely could be added, but why do you want to style each link differently?




different classes for <li>'s in album_menu - fretzl - 2008-10-17

That way I can make an album which I use but the generated link will not be displayed.

And I really rather use CSS than a JavaScript workaround.




different classes for <li>'s in album_menu - acrylian - 2008-10-17

Do you want to hide that album from visitors? In that case setting it to unpublished would be the better way.




different classes for <li>'s in album_menu - fretzl - 2008-10-17

That's what I tried first but it did not do the trick. I still saw/see everything.

By the way, is it just me again or is the search-function not working in 1.2.1




different classes for <li>'s in album_menu - albeezie - 2008-10-17

If you are still logged in as the admin, you will still see everything.




different classes for <li>'s in album_menu - fretzl - 2008-10-17

Now, that was really stupid of me !! Sorry
But will the images in the hidden albums show up when I use the search function?
I can't check because "search" doesn't work since I updated.
Thanks albeezie




different classes for <li>'s in album_menu - acrylian - 2008-10-17

[i]But will the images in the hidden albums show up when I use the search function?[/i]
No, only if you are logged in.

Well, there seems indeed to be a problem with the search...




different classes for <li>'s in album_menu - fretzl - 2008-10-17

....going on about classes for ``
That's my problem.
I have two albums "home"and "archive". I want to hide the generated links of those albums.
(I use a different link for "home" and "archive" is an archive with older images)

And I'd like the search function to include those albums.

Thanks acrylian




different classes for <li>'s in album_menu - fretzl - 2008-10-18

Hello,

Quote: Well, there seems indeed to be a problem with the search...
Any news on search ??