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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lamnguyen
    Junior Member
    • Jul 2015
    • 3

    #1

    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?
  • yuri
    Member
    • Mar 2014
    • 9119

    #2
    You need to define "view": "Custom:Your.View.Class"
    In your view file you define listTemplate name.
    In template you write your html.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • lamnguyen
      Junior Member
      • Jul 2015
      • 3

      #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

      • yuri
        Member
        • Mar 2014
        • 9119

        #4
        I think it is not needed feature.

        You can aslo try to use "view": "Fields.Url"
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment

        Working...