+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / how to short image gallery by category..

how to short image gallery by category..

3 posts, 0 answered
  1. Ketan
    Ketan avatar
    29 posts
    Registered:
    28 Mar 2014
    20 May 2014
    Link to this post

    Currently i am using sitefinity 6.3.500, for that i have to sort image by its category..

     but when i try to sort them it will give me error..

    Error parsing the template

    i will change the sort direction from below image and also get the idea from below link..

    http://www.sitefinity.com/documentation/documentationarticles/filter-expressions-for-content-items

    http://www.sitefinity.com/developer-network/knowledge-base/sorting-content-in-sitefinity

    also i want to short category with pagination.. so its mix-up of category and pagination both..  

     

    any one can help me..

     

     

  2. Junior Dominguez
    Junior Dominguez avatar
    115 posts
    Registered:
    08 Dec 2016
    28 May 2014
    Link to this post
    Hi Ketan,

    In order to filter the Image gallery items by Category you need to put the category Id in the filter expression as in the documentation. The expression may look similar to the following:

    Visible = true AND Status = Live AND Category.Contains("{c571137e-9c35-60f3-aa85-ff0200ef4291}")

    Notice that if the brackets are missing in the expression, Sitefinity will throw the error message "Error parsing the template".

    There are ways to know the category Id. One could be by opening the table sf_taxa and copying the id directly. Other way could be using the DevTools and inspecting the network request when clicking in the specific category. Please take a look to the video attached.

    The sort expression works as expected as shown in this other video.

    Kind Regards,
    Junior Dominguez
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. Ketan
    Ketan avatar
    29 posts
    Registered:
    28 Mar 2014
    29 May 2014 in reply to Junior Dominguez
    Link to this post

    Thanks Junior for replying this.

    i got the solution..

3 posts, 0 answered