Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

How to make the "Most Viewed Articles" word as hyperlink

ramesh_r
Giga Sage

Hi All,

I want to add the hyperlink in the "Most Viewed Articles" word as a hyperlink 

I cloned the "Most Viewed Articles" widget but I can't find the place to make this word a hyperlink

ramesh_r_0-1725899542982.png

 

<sp-panel ng-if="data.articles.length > 0" >  
  <ul class="list-group">
    <li class="list-group-item" ng-repeat="a in data.articles">
      <a href="?id=kb_article&sys_id={{::a.sys_id}}">{{::a.short_description}}</a>
      <div>
        <span ng-if="a.sys_view_count == 1" class="views pad-right">
          <glyph sn-char="eye-open" class="pad-right"></glyph>
          ${{{::a.sys_view_count}} View}
        </span>
        <span ng-if="a.sys_view_count > 1" class="views pad-right">
          <glyph sn-char="eye-open" class="pad-right"></glyph>
          ${{{::a.sys_view_count}} Views}
        </span>
        <span ng-if="false" class="published pad-right">
          <span ng-if="a.sys_view_count > 0" class="pad-right">&#8226;</span> <glyph sn-char="calendar" class="pad-right"></glyph>
          <sn-day-ago date="a.published"></sn-day-ago>
        </span>
      </div>
    </li>
  </ul>
</sp-panel>
0 REPLIES 0