Navigation menu with products
11 posts by 3 authors in: Forums > CMS Builder
Last Post: September 1, 2010 (RSS)
By Jason - September 1, 2010
Hi David,
So you just need to output all of the products from each of your multi record sections. Is that right?
Here's an example of how you can output one of them, you can just replicate this to display more than one, but this should get you started.
Near the top of your page, you select your records. We'll use colouring_books as an example.
This code will take all of the records from your colouring_books section and store them in $colouring_booksRecords.
You can then use this code to output them where ever you want:
You can just change the names to output from other sections. For more examples of the code to output different parts of a record, use the code generator for one of your sections.
This should get you started. Let me know if you run into any issues.
Thanks.
So you just need to output all of the products from each of your multi record sections. Is that right?
Here's an example of how you can output one of them, you can just replicate this to display more than one, but this should get you started.
Near the top of your page, you select your records. We'll use colouring_books as an example.
<?php
list($colouring_booksRecords, $colouring_booksMetaData)=getRecords(array(
'tableName' => 'colouring_books',
'allowSearch' => false,
));
?>
This code will take all of the records from your colouring_books section and store them in $colouring_booksRecords.
You can then use this code to output them where ever you want:
Colouring Books<br/>
<?php foreach ($colour_booksRecords as $colouring_book): ?>
*YOUR OUTPUT CODE HERE*
<?php endforeach ?>
You can just change the names to output from other sections. For more examples of the code to output different parts of a record, use the code generator for one of your sections.
This should get you started. Let me know if you run into any issues.
Thanks.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/