Heading is repeated

7 posts by 3 authors in: Forums > CMS Builder
Last Post: July 16, 2014   (RSS)

By CommonSenseDesign - July 14, 2014 - edited: July 14, 2014

I have a products section that's divided into Departments > Categories > Subcategories > Products. http://healthyfoodsandmore.com/departments.php

If you choose one of the Categories - e.g. Supplements - you'll see a page that lists all of the subcategories; e.g. http://healthyfoodsandmore.com/departments-subcategories.php?main_category=3. There are currently five subcategories - Vitamins & Minerals, Homeopathic, etc. The heading shows the Category - Supplements - five times, presumably because of the number of products. How do I get this so the Category heading only appears once?

This is the code I'm using:

<?php foreach ($departments_subcategoriesRecords as $record): ?>
<?php echo htmlencode($record['main_category:label']) ?>
<?php endforeach ?>

Thanks!

By claire - July 15, 2014

Just in case you haven't noticed - the links to your departments are currently broken. Do you still need help with this?

--------------------

Claire Ryan
interactivetools.com

Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By claire - July 16, 2014

The pictures on this page: http://healthyfoodsandmore.com/departments.php are linked properly, but the text headings under them are not. You've got an undefined index error there.

Do you need help fixing that?

--------------------

Claire Ryan
interactivetools.com

Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By CommonSenseDesign - July 16, 2014 - edited: July 16, 2014

Well spotted! Thank you. I think it's fixed now: http://healthyfoodsandmore.com/departments.php