Hi, this is my first Actinic project, and my first post here.
The problem is how to show the user when they go to a section that is currently empty. This is the setup:
6 top sections (diff types of products)
Each top section can have 0+ subsections, which represent manufacturers.
Each of those subsections/manufacturers can then contain products.
We're still waiting on content from the client, but want to go live with what we have - that is 3 top sections filled with manufacturers and products, and the other 3 top sections are empty.
This is the catalog part of the site -
http://www.rjsxtreme.co.uk/acatalog/
Note that I've taken a basic template and ripped out all the table-based HTML to replace it with CSS positioned HTML.
At the top of each subsection I have placed a list of manufacturers within that subsection - this is generated via JavaScript, using the child_sections_names array. That worked fine - if there were child sections, list them as manufacturers within this section, otherwise don't create the list. That allows the list in the top level sections, but prevents it from being shown when you're viewing a manufacturer page.
Hopefully that makes sense if you view the site!
Is there a similar JavaScript method of getting an array of products within the current section? If so, I could check if there are no child sections AND no products, then show the 'no products available' message on the page.
Or is there a better way of achieving this?
The problem is how to show the user when they go to a section that is currently empty. This is the setup:
6 top sections (diff types of products)
Each top section can have 0+ subsections, which represent manufacturers.
Each of those subsections/manufacturers can then contain products.
We're still waiting on content from the client, but want to go live with what we have - that is 3 top sections filled with manufacturers and products, and the other 3 top sections are empty.
This is the catalog part of the site -
http://www.rjsxtreme.co.uk/acatalog/
Note that I've taken a basic template and ripped out all the table-based HTML to replace it with CSS positioned HTML.
At the top of each subsection I have placed a list of manufacturers within that subsection - this is generated via JavaScript, using the child_sections_names array. That worked fine - if there were child sections, list them as manufacturers within this section, otherwise don't create the list. That allows the list in the top level sections, but prevents it from being shown when you're viewing a manufacturer page.
Hopefully that makes sense if you view the site!
Is there a similar JavaScript method of getting an array of products within the current section? If so, I could check if there are no child sections AND no products, then show the 'no products available' message on the page.
Or is there a better way of achieving this?
Comment