Elxis CMS Forum
Extensions => Modules => Topic started by: seadhna 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,
-
just wondering if anyone has any ideas on this?
unique id or class for each menu item?
-
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";
}
?>