Copied to clipboard

Flag this post as spam?

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


  • Sanjay Sen 33 posts 97 karma points
    Mar 03, 2015 @ 14:36
    Sanjay Sen
    0

    XFS Search

    Hi All,

    I am very new to XFS Facet search and have been trying to create my own facet on the base of examples given here https://www.xfssearch.com/about-xfs/documentation/facets/ . I am doing it in umbraco. The problem is there is not enough documentation which can guide me through. Please see my requirement below:

    I have few tags which are grouped on the base of tag group. I need to associate these tags to various contents in umbraco. For doing tag group I have used following umbraco package https://our.umbraco.org/projects/backoffice-extensions/nupickers so I can have tags as check-boxes on content which can be selected to relate them with those tags as shown here http://i.imgur.com/zzIehEj.png

    Now the things I want your help on as below:

    1) I want to show facets as separate for each check-box, I don’t want to show facets as comma separated on a check-box if they are added from a single tag group on a single content.

    2) Is there a way to restrict the content on the base of document type we want to show on page rather than all contents?

    Many Thanks

    Sanjay

     

  • Jonathan Roberts 409 posts 1063 karma points
    Sep 07, 2015 @ 08:35
    Jonathan Roberts
    0

    HI, If you create a DataType as a checkboxlist, call it something like Taxonomy and give it some pre defined values; for example Blog, News, Event etc.

    Then set this up for your pages in the Document Type.

    Go to your pages and set them with a Taxonomy value - publish each page.

    Go to the Source of your Search page template and on line 80 (of the original source) change the datatype to taxonomy; for example: StringFacetCheckbox documentTypeFacet = new StringFacetCheckbox("dt", "Document Type", "taxonomy");

    Then save the template.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies