You generate the menu with artices!? Thats new for me.

I talked about the shared style hklc_menu, and how i implement a navigation
and subnavigation.

Do you have any experience with this?

Regards,
Alex


-----Ursprüngliche Nachricht-----
Von: Marcin Soltysiak [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 17. Mai 2002 13:04
An: [EMAIL PROTECTED]
Betreff: RE: [midgard-user] Nadmin: Automatic Menu generation


> are there any examples for the automatic menu gerneration out 
> there? Examplesites, etc?

Nadmin is quote complex about this. Easy way is .ie.:

---CODE---

<table>
<?
$start=mgd_get_topic_by_name(0,"menu");

if ($start){
 $topic=mgd_list_topics($start->id,"score");
 while ($topic->fetch()){
?>
              <tr> 
                <td bgcolor="#F9EFD2" class="men" height="2"> 
                  <div align="right"><B>&(topic.name);</B></DIV>
                </TD>
              </TR>
              <TR>
                <TD class="men">
<?
  if ($art=mgd_list_topic_articles($topic->id,"score")){
   while ($art->fetch()){
    if ($art->url) {
     $link=$art->url;
    } else {
     $link="/$lang/".$art->id.".html";
    }
?>
                    <a href="&(link);">&(art.title);</a><br>
<?
   }
  }
?>
                 </TD>
                </TR>
<?
 }
}
?>
</table>

------EOC---------


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to