Forum Discussion

iftomkins's avatar
11 years ago

Output the board name as a class in the mobile board browser component

Our desktop site outputs the node name on each table item, which allows us to put product icons next to each board. This screenshot shows where the lia-node-force class appears: http://screencast.com/t/CAGjuA7M

On mobile, I’d like to make this happen, too.

Here is the <tr> on mobile where we’d like the product class to be applied, such as “lia-node-force”: http://screencast.com/t/TF6rG7mS.

Anyone know how this class can be added on mobile?

2 Replies

  • Any ideas? I suppose I can check the URL of each node manually, and if it contains a certain string, conditionally assign a class to that HTML element, but I'd imagine there'd be an easier way....

  • samudhraa's avatar
    samudhraa
    Expert
    11 years ago

    Hi ,

     

    I suppose you can use the coreNode context object to get the board it and use the value as class in HTML.

    Something like this.

     

    <#assign boardId = coreNode.id />

    <div class="${boardId}">

    bla bla

    </div>

     

     

    Hope that helps.

    Thanks,

    Sam