Member
Member
simon   13-09-2009, 19:18
#1

Hi,

I need to assign id's to the
[list] tags that are created on the fly when ZP generates the menu lists in order to get a bit of jquery working.

Can anyone tell me where they are? I specifically need to edit the News, Albums and Pages opening [/list]
[list].

Anyone help me out here? Be appreciated!

Thanks, Simon[/list]

Member
Member
sbillard   13-09-2009, 22:04
#2

If by IDs you mean the database ID field, then it is generated automatically. If you need something else, you will need to be more specific.

Member
Member
simon   14-09-2009, 09:15
#3

Thanks for the reply, allow me to clarify, and sorry for the confusion:

I want to assign a CSS ID to the opening of the html lists that are created when the navigation menus are generated. Example: By Default they do not have id's assigned.

I specifically need to assign id's to the News, Albums, Pages and Archive menus opening `` so that I can control their behavior.

I am assuming I can edit this directly in one of the .php files, I am hoping someone can tell me where to look. Hope this is a but clearer?

Thanks in advance, Simon

Member
Member
sbillard   15-09-2009, 01:57
#4

Please review the functions guide. Generally speaking each of these functions which output HTML will allow you to pass an ID as an optional parameter.

Member
Member
simon   15-09-2009, 09:37
#5

Thanks for the pointers! Got it. All good.

S

Administrator
Administrator
acrylian   15-09-2009, 10:22
#6

It is also possible to put something like ... around all those list and address them by #menu ul, #menu ul li etc., in case all should look the same.

Member
Member
simon   15-09-2009, 14:37
#7

Yes, true, that could have been a solution but i'm pretty sure it wouldn't validate.

But I discovered that the empty value in the passed parameters of the function was the ID, which was exactly what i needed!

Example: `

Administrator
Administrator
acrylian   15-09-2009, 14:55
#8

Yes, we added these parameters for that purpose..;-) Also if you need a full customized function you can also use the "get" variants that nearly every "print" function has to build yourown.

Regarding validation, my suggestion should validate as well as is actually allowed witin.

Member
Member
simon   15-09-2009, 18:24
#9

Sure ul is allowed in div! But not vice versa (actually it might be allowed i would have to check to be certain i might have to eat my words..) but either way, in the context i am using it, it would be semantically incorrect - I'm building a set of nested menus that slide open and closed.

Administrator
Administrator
acrylian   16-09-2009, 09:11
#10

div is also allowed within li but that would require customized functions anyway. And of course I don't know what you doing, so if it works for you everything is fine..;-)

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.