Share with colleagues and friends who could benefit from our webinars too!
Problems with item/category templates
We’re building an informational web site that has no e-commerce components. The basic requirements are to have web site tabs, and for each tab to have multiple categories, where a given category may have one or more information items AND file cabinet media items.
We’re using v11, and are using layouts with the new capabilities for custom templates for categories and items. The item cell templates are coded to use “infoitems” in the getCurrentAttribute() function.
Everything works great when a category has only information items under it; however, when a category has only file cabinet items, or both information items and file cabinet items, the template cannot handle the data (specifically the file cabinet items) and displays an error along the lines of “System Maintenance Period. Our Web site is temporarily unavailable while we perform routine system maintenance...”. If the file cabinet items were removed, then the page displays correctly. I guess this kind of makes sense, since it’s trying to display a file cabinet item through a template designed for info items.