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

Forums / Sitefinity SDK / Filter on taxonomies on frontend

Filter on taxonomies on frontend

7 posts, 0 answered
  1. Daniel Plomp
    Daniel Plomp avatar
    112 posts
    Registered:
    14 Jun 2012
    06 Jun 2011
    Link to this post
    Hi all,

    I've created a new module based on the ProductsModule. It serves 'Companies'.
    I use taxonomies to categorize companies.

    How can I achieve the following on the frontend?

    1. Show a list of the taxonomies in a sidemenu area.
    2. When clicking on a category, I want to navigate to a page that shows a list of companies, filtered on the selected category.
    3. The URL should look like this:

    http://www.mycompany.com/parent-category/selected-category/

    Is this possible in SF?

    Regards,
    Daniel
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    06 Jun 2011
    Link to this post
    Hi Daniel ,

    The newsletters and its campaigns does not support classification. I am not sure how you can filter campaign by category in this case.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  3. Daniel Plomp
    Daniel Plomp avatar
    112 posts
    Registered:
    14 Jun 2012
    06 Jun 2011
    Link to this post
    Hi Ivan,

    I'm not referring to newsletters and campaigns, but to a custom module that serves Companies, based on the Products module.

    Regards,
    Daniel
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    06 Jun 2011
    Link to this post
    Hi Daniel,

    Ok,

    1. To get all classifications you can use TaxonomyManager and its methods like GetTaxonomies

    2. To filter the items based on the classifications use ContentProviderBase and its GetItemsByTaxon method.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  5. Daniel Plomp
    Daniel Plomp avatar
    112 posts
    Registered:
    14 Jun 2012
    06 Jun 2011
    Link to this post
    Hi Ivan,

    But how can I create an url like I described? Is that possible?
    So that one can navigate through:

    http://www.mycompany.com/companies/parent-category/category

    And see a list of companies?

    Regards,
    Daniel
  6. Simon
    Simon avatar
    10 posts
    Registered:
    08 Jun 2012
    12 Jul 2012
    Link to this post
    Daniel, did you have this working?  I am in the same boat as you are right now...
  7. Simon
    Simon avatar
    10 posts
    Registered:
    08 Jun 2012
    12 Jul 2012
    Link to this post
    Daniel, did you have this working?  I am in the same boat as you are right now...
7 posts, 0 answered