Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder:
Navigation menu with products

 

 


davebee
Novice

Aug 27, 2010, 8:43 AM

Post #1 of 11 (2420 views)
Shortcut
Navigation menu with products Can't Post

Hello I have started using cms builder having previously used article manager a few years ago.

Very please with the product so far. Just have a question regarding navigation.

I have had a look on the forum and not found anything so far, whats the best way to set up navigation on the site.

I have created my static navigation, however some pages have products, so what would be the best way for me to set up a navigation in the backend and for me to automatically show the products in a navigation tree.



My code is like this



<h3 class="headerbar"><a href="Books</a></h3>


<ul class="submenu">
<li><a href="#" >Books 1</a></li>

<li><a href="#" >Books 2</a></li>

</ul>

Thanks



David


Jason
Staff / Moderator


Aug 27, 2010, 9:17 AM

Post #2 of 11 (2416 views)
Shortcut
Re: [davebee] Navigation menu with products [In reply to] Can't Post

Hi David,

You can definitely display lists of products in your navigation. In order to give you a more specific example, I'll need to know more about exactly what you want to display:

- Do you want to display all of your products, or only some of them?
- Are you dividing your products into categories? How is this stored inside CMS Builder?

If you can give some more details on how you want the navigation to work, I'll be able to get you started.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Programmer 
interactivetools.com

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


davebee
Novice

Aug 28, 2010, 8:05 AM

Post #3 of 11 (2402 views)
Shortcut
Re: [Jason] Navigation menu with products [In reply to] Can't Post

Hi Jason

Thank you for youre reply,

- Do you want to display all of your products, or only some of them?

I want to show all my products, however the products have been put into categories.

- Are you dividing your products into categories? How is this stored inside CMS Builder?


I have set up 4 categories, each with a name, say books, posters, cards, diaries. Then all the products are added via the backend.

So when someone hovers over the title of the side navigation say books, it will show all the products for books., and so on.



Many Thanks



David


Chris
Staff


Aug 30, 2010, 1:16 PM

Post #4 of 11 (2377 views)
Shortcut
Re: [davebee] Navigation menu with products [In reply to] Can't Post

Hi David,

One last question: do you have a section managing your categories or have you hard-coded them into the list field in your Products section?
Chris


davebee
Novice

Aug 30, 2010, 1:37 PM

Post #5 of 11 (2374 views)
Shortcut
Re: [chris] Navigation menu with products [In reply to] Can't Post

Hello

The Categories I have set up in the backend, using the pre created products editor, and I added the products into there. I did this four times for four categories.

If thats what you mean?

Many Thanks



David


davebee
Novice

Aug 31, 2010, 11:43 AM

Post #6 of 11 (2356 views)
Shortcut
Re: [chris] Navigation menu with products [In reply to] Can't Post

Hello Chris

Just wondering if there is any update on how I add the products per category into the side navigation :-)

Thank you



Dave


davebee
Novice

Aug 31, 2010, 11:43 AM

Post #7 of 11 (2356 views)
Shortcut
Re: [chris] Navigation menu with products [In reply to] Can't Post

Hello Chris

Just wondering if there is any update on how I add the products per category into the side navigation :-)

Thank you



Dave


davebee
Novice

Aug 31, 2010, 11:43 AM

Post #8 of 11 (2356 views)
Shortcut
Re: [chris] Navigation menu with products [In reply to] Can't Post

Hello Chris

Just wondering if there is any update on how I add the products per category into the side navigation :-)

Thank you



Dave


Chris
Staff


Aug 31, 2010, 11:52 AM

Post #9 of 11 (2355 views)
Shortcut
Re: [davebee] Navigation menu with products [In reply to] Can't Post

Hi David,

Do you mean that you've created 4 separate Multi Record sections for your products?

Could you please use the Code Generator to generate a list viewer for one of your products sections and post the code here so I can see your field names? Creating a navigation menu usually involves modifying a list viewer, so I can take you through the process. :)
Chris


davebee
Novice

Sep 1, 2010, 2:14 AM

Post #10 of 11 (2343 views)
Shortcut
Re: [chris] Navigation menu with products [In reply to] Can't Post

Hello Chris Think im getting confused.

In cms backend I have created say four menus which are Multi Records.

The 4 multi records mysql names are called.
colouring_books
childrens_diaries
notebooks
products

I have then added products into the relevant categories (multi records)

All im trying to work out is:

How I create a navigation tree which we show the following multi records navigation on the site. so when new products are added is saves me from having to manual update the navigational structure that I have.

Im not sure what generator I use to create a navigation structure.

Many Thanks

David


Jason
Staff / Moderator


Sep 1, 2010, 9:10 AM

Post #11 of 11 (2331 views)
Shortcut
Re: [davebee] Navigation menu with products [In reply to] Can't Post

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.


Code
<?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:


Code
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 - Programmer 
interactivetools.com

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