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: [hegadmin] Category Issues

By ross - April 14, 2009

Hi there

Thanks for posting!

Do you have an example of the script working properly I could take a look at?

Could you link me to your site so I can see how it's working so far? We might end up going a bit further and have you send me FTP details but lets see how far we get with this and go from there.

Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

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.