Yet another menu system

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
Steve_a

Yet another menu system

Post by Steve_a »

Ok this is a simple hack but it dosen't have redraw problems with Flash backgrounds - See (http://forum.cmsmadesimple.org/index.ph ... 310.0.html)



";

$db_host = "localhost";
$db_user = "cms_user";
$db_pass = "Yourpassword";
$db_name = "cms";
$db = mysql_connect($db_host,$db_user,$db_pass);
mysql_select_db ($db_name) or die ("Cannot connect to database");
$result = mysql_query("select menu_text from cms_content");
$total = mysql_num_rows($result);
while ($myrow = mysql_fetch_array($result))

{
echo "";
echo $myrow["menu_text"];
}

echo "";
mysql_close($db);
?>

______End code

Ah!
If I create a user defined tag

insert this

echo "";

$result = mysql_query("select menu_text from cms_content");
$total = mysql_num_rows($result);
while ($myrow = mysql_fetch_array($result))

{
echo "";
echo $myrow["menu_text"];
}

echo "";

Wohla!

I can see an adiction developing!
Last edited by Steve_a on Tue Jul 26, 2005 12:01 am, edited 1 time in total.
iNSiPiD

Re: Yet another menu system

Post by iNSiPiD »

My current CMS works this way and it's useful to a point.

What I'd prefer to see is an option for how many pages to display per page (or just show them ALL on one page) and collapsable "+" links next to menu items with children.

I've installed and tested almost every CMS known to man and I truly think this combination would be the best.
Locked

Return to “Modules/Add-Ons”