Announcement

Collapse
No announcement yet.

How to show column's value as link in list view?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to show column's value as link in list view?

    I have a column that has value is a link to other site. I want that column on list view show a link with href is column's value. So how to do that?

    Any once can help?

  • #2
    You need to define "view": "Custom:Your.View.Class"
    In your view file you define listTemplate name.
    In template you write your html.

    Comment


    • #3
      Thank you for your answer, but I wonder why don't you guys set it as column's configuration in list.json?
      as this:

      [name:<column_name>,type:link]

      and it would output html: <a href="column_value"><column_value_or_custom_label> </a>

      and something link this:

      [name:<column_name>,type:link, htmloptions:{attribute1:<value>,attribute2:<value> }]

      and it wold output some html options.

      Is it possible?

      Comment


      • #4
        I think it is not needed feature.

        You can aslo try to use "view": "Fields.Url"

        Comment

        Working...
        X