Discussions
Item List Templates for both Information and Inventory Items
I'm buliding Item List Templates for the Home Tab on our web site. At the bottom there's a list of "Featured Items". Some are Information Items and some are Inventory Items for Sale. How do I remove the "Buy" tag and "Price" from the template only for Information Items?
Edit: The plot thickens - Inventory Items of course have different fields than Information items. If I add storedisplayname to the html it works great for the Inventory items but obviously throws an error if it's an Information Item because the field doesn't exist. There must be a way to distinguish between the two when writing the code.