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!

Re: [oren3419] Categories structure

By Dave - December 27, 2008

Hi oren3419, welcome to the CMS Builder forum! :)

Have a look at this post, it has some sample code to do this: http://www.interactivetools.com/forum/gforum.cgi?post=64259#64259

Then let me know if you have any questions or need more help.
Dave Edis - Senior Developer
interactivetools.com