It's pretty much the same as with a regular list of records, except it automatically figured out and assigns a value for 'depth'. So say your variable is named $record['depth'] you can use that to display different classnames (menudepth0, menuDepth1, etc) or use PHP to display different html based on the depth:
<?php foreach ($categoryRecords as $record): ?>
<?php if ($record['depth'] == 0): ?>
<?php echo $record['name'] ?>
<?php endif ?>
<?php if ($record['depth'] == 1): ?>
- <?php echo $record['name'] ?>
<?php endif ?>
<?php if ($record['depth'] == 2): ?>
- <?php echo $record['name'] ?>
<?php endif ?>
<?php endoforeach ?>
The first step is to figure out how you want your categories to look in HTML. Then figure out how to get CMS Builder to output that.
Hope that helps, let me know if you need any more assistance with this one. And yes in future we'll add more options to the code generator to automatically generate category menus for you.
Dave Edis - Senior Developer
interactivetools.com