Skip to Content
3
Former Member
May 06, 2015 at 03:54 PM

Customize Product Cockpit Grid View

375 Views

I'm working in the product cockpit and have created gridView_Product.xml within my cockpits extension. Inside of it is the following snippet:

 <?xml version="1.0" encoding="UTF-8"?>
 <grid-view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="grid-view.xsd">
     <imageslot>
         <property qualifier="Product.thumbnail.URL"/>
     </imageslot>
     <labelslot>
         <property qualifier="Product.name" />
     </labelslot>
     <descriptionslot>
         <property qualifier="Product.code" prefix="# ID" />
     </descriptionslot>
     ...
 </grid-view>
 

For the imageslot, I'd like to be able to modify via code the property I've defined ("Product.thumbnail.URL" in this case). In the wiki, I've found numerous links for defining these xml files, as well as pages discussing how to modify a list view, but nothing specific to the grid view. How can I best approach this?