Category Issues

4 posts by 3 authors in: Forums > CMS Builder
Last Post: April 15, 2009   (RSS)

By (Deleted User) - April 13, 2009 - edited: April 13, 2009

I am tring to get the Category Menu System to work using Java and Linking. But not getting it right.

Code I am attaching the CMS for my menu system to is:

<?php

require_once "/home2/winprogr/public_html/wflowers/cmsAdmin/lib/viewer_functions.php";

list($variety_list_menuRecords, $variety_list_menuMetaData) = getRecords(array(
'tableName' => 'variety_list_menu',
));

?>
<head>
<link rel="stylesheet" href="style.css" type="text/css" />
<script type="text/javascript" src="script.js"></script>
</head>

<body>
<ul class="menu" id="menu">
<li><font face="Tahoma" style="font-size: 8pt"><a href="#" class="menulink">
<font color="#585858">Variety List</font></a> </font>
<ul style="position: absolute; left: 1px; top: 26px">
<li>
<a href="#" class="sub"><font color="#FFFFFF">Parent Category</font></a><font color="#FFFFFF">
</font>
<ul style="position: absolute; left: 100px; top: 0px; width: 100px">
<li><a href="#"><font color="#FFFFFF">Sub Category</font></a></li>
</ul>
</li>
</ul>
</li>
</ul>
<script type="text/javascript">
var menu=new menu.dd("menu");
menu.init("menu","menuhover");
</script>
</body>

I am not sure how to get the Parent to show and all the subs under it.

<?php foreach ($variety_list_menuRecords as $record): ?>
Record Number: <?php echo $record['num'] ?><br/>
Parent Category: <?php echo $record['parentNum'] ?><br/>
Name: <?php echo $record['name'] ?><br/>
Content: <?php echo $record['content'] ?><br/>
_link : <a href="<?php echo $record['_link'] ?>"><?php echo $record['_link'] ?></a><br/>

<hr/>
<?php endforeach; ?>

Please help.
Attachments:

script.js 2K

style.css 1K

Re: [ross] Category Issues

By (Deleted User) - April 14, 2009

Unfortunately...I am still working on but the menu system for this site.

The Javascript works if I do a static menu but can not figure away for it to integrate it to the CMS.

I uploaded the menu system so you can see. There is no FTP access to this yet as it will be a new site release.

Re: [hegadmin] Category Issues

By Dave - April 15, 2009

Hi hegadmin,

The trick is to view-source on both your mockup page where you have the menu working and then the CMS generated page where the menu isn't working and figure out what's different.

I'm guessing your menu probably needs to be output as an unordered list (eg: <ul> <li>menu</li> etc </ul>). To do that have a look at the sample code in this thread: http://www.interactivetools.com/forum/gforum.cgi?post=64259#64259

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com