Categories structure

2 posts by 2 authors in: Forums > CMS Builder
Last Post: December 27, 2008   (RSS)

By oren3419 - December 24, 2008 - edited: December 24, 2008

Hello

I created a "Category Menu", and added some categories.
I generated the php code, uploaded to my server, modified the looks.

But I cant see the structure of the categories...
Meaning, instead of seeing:
Category 1
Sub-category-1
Sub-category-2
Category-2
Sub-category-1
Sub-category-2

I see it like this:
Category 1
Sub-category-1
Sub-category-2
Category-2
Sub-category-1
Sub-category-2


This is the code:
<?php foreach ($categoriesRecords as $record): ?>
<a href="<?php echo $record['_link'] ?>"><?php echo $record['name'] ?></a><br/>

<?php endforeach; ?>

<?php if (!$categoriesRecords): ?>
No records were found!<br/><br/>
<?php endif ?>


What I need to do to generate a code that will show the categories the proper way?

Thanks!