Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Manish 373 posts 932 karma points
    Oct 24, 2016 @ 09:04
    Manish
    0

    How can i use filter result on basis of category

    HI

    I just want to give user a panel which have some category and user can filter search result on basis of this. Has anyone tried such stuff before.

    Thanks Manish

  • Yasir Butt 161 posts 371 karma points
    Oct 24, 2016 @ 09:41
    Yasir Butt
    0

    Hi,

    it is better to show your tree structure.

    I supposed that you have category document type and service/product/article document type where category er referenced in it.

    so code supposed to be like

    var results = Model.Content.Ancestor(1).Desendents("your article page").Where(x=>x.GetPropertyValue<string>("Your Category")== "selected category from filter");
    

    I just write the code directly in text so it may have spelling mistake.

    Yasir

  • Manish 373 posts 932 karma points
    Oct 24, 2016 @ 09:52
    Manish
    0

    @yasir

    Basically I want to use facet search. so is there any example which help me out. Many thanks for your answer

    Manish

Please Sign in or register to post replies

Write your reply to:

Draft