Administrator
Administrator
fretzl   2008-10-17, 15:19
#1
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
Administrator
Administrator
acrylian   2008-10-17, 16:14
#2
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.`
Administrator
Administrator
fretzl   2008-10-17, 17:39
#3
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
Administrator
Administrator
acrylian   2008-10-17, 18:00
#4
That surely could be added, but why do you want to style each link differently?
Administrator
Administrator
fretzl   2008-10-17, 18:19
#5
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.
Administrator
Administrator
acrylian   2008-10-17, 18:23
#6
Do you want to hide that album from visitors? In that case setting it to unpublished would be the better way.
Administrator
Administrator
fretzl   2008-10-17, 18:35
#7
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
Member
Member
albeezie   2008-10-17, 18:37
#8
If you are still logged in as the admin, you will still see everything.
Administrator
Administrator
fretzl   2008-10-17, 18:48
#9
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
Administrator
Administrator
acrylian   2008-10-17, 18:55
#10
[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...
Administrator
Administrator
fretzl   2008-10-17, 19:14
#11
....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
Administrator
Administrator
fretzl   2008-10-18, 11:37
#12
Hello,

Quote: Well, there seems indeed to be a problem with the search...
Any news on search ??
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.