sitecoresitecore-speak-ui

Sitecore SPEAK UI configure ListControl to display icon and button


Is there a way in Sitecore SPEAK UI (7.5) to configure a ListControl (ViewMode set to DetailList) to contain a column with images, and another column containing buttons?

I've created a ListControl Parameters item beneath my PageSettings item and have added a few ColumnField items for the required columns - but cant find any other template types to add for different types of column data. I've also tried playing around with the Formatter and HTMLTemplate fields of the ColumnFields but am not sure how these are meant to be used.


Solution

  • Considering button means hyperlink. You can try adding the following in the HTMLTemplate:

    For Image:

    <img src="{{YourImageSourceField}}" ..../>
    

    For Hyperlink:

    <a href="{{YourLinkSrcField}}">{{YourLinkTextField}}</a>
    

    You can also consider reading Martina Welander Speak Series for some information on this kind of custom implementations.