Forum Discussion

arthur_'s avatar
arthur_
Guide
7 years ago

Get default sort property for TKB articles

Hi,   Admin section allows community managers to set default sorting for articles on a TKB page.   Is there possibility to extract this option using API call or context objects?   So far I trie...
  • VikasB's avatar
    7 years ago

    arthur_

    Unfortunately, It would not be possible to get it through the API.  But you can get it using Jquery. 

     

    $('.lia-js-menu-opener.default-menu-option.lia-js-mouseover-menu.lia-link-navigation').text();

    It will return whatever selected option like
    "Top LabelsComments" , "Top LabelsKudos" etc. 

     

    Note: Verify the selector class for your instance.