Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
IOS Hotels
and
IOS Rentals
online booking systems for Elxis CMS.
Home
Help
Login
Register
Elxis CMS Forum
»
Extensions
»
Modules
»
Individual id for each <li> in mainmenu?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Individual id for each <li> in mainmenu? (Read 4585 times)
seadhna
Hero Member
Posts: 507
Individual id for each <li> in mainmenu?
«
on:
July 15, 2010, 19:40:37 »
Hi there,
the menu I have designed requires an individual ID for each <li> in the mainlevel <ul>
it is possible to make this happen, by say, inserting additional lines in mod_mainmenu.php?
many thanks,
Logged
seadhna
Hero Member
Posts: 507
Re: Individual id for each <li> in mainmenu?
«
Reply #1 on:
August 13, 2010, 10:58:11 »
just wondering if anyone has any ideas on this?
unique id or class for each menu item?
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: Individual id for each <li> in mainmenu?
«
Reply #2 on:
August 14, 2010, 19:50:04 »
I believe that you dont need to do that but i will reply your question.
It is easy, you can do it like this:
<?php
for ($i=0; $i<10; $i++) {
echo '<li id="xxx'.$i.'">text here</li>'."\n";
}
?>
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Extensions
»
Modules
»
Individual id for each <li> in mainmenu?