![]() |
|
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 `<li>`'s with CSS. Is it possible to assign different classes to each generated `<li>` with a non-active link????? (for instance: `<li class="nameofalbum">` 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: ` <ul id='album_menu'> [*]tanzania [*]fliebedie <li class='album_menu_active'>archief</li> [*]home </ul> ` What I would very much like is that every `<li>` has it's unique class-name. Like: `<li class="nameofalbum">` or something like that. That way I can style each `<li>` separately with CSS. (Ofcourse the `<li>` 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 `<li>` 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 ?? |