More in this section
Forums / Project Feather / Client Components Hierarchical Taxon Selector with multisite and multi culture

Client Components Hierarchical Taxon Selector with multisite and multi culture

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
1 posts, 0 answered
  1. David
    David avatar
    0 posts
    Registered:
    13 Sep 2015
    10 Jul 2017
    Link to this post

    Hello all,

    I'm bringing all client components from the backend to the front and I'm stuck only on one topic: Taxonomies.

    I've got a small widget to manage creation for a blog post which use taxonomy selector with markup as follow:

    <sf-list-selector sf-hierarchical-taxon-selector sf-multiselect="true" sf-sortable="true" sf-site="formModel.site" sf-provider="formModel.provider" sf-selected-items="formModel.categoriesSelectedItems" sf-selected-ids="formModel.categoriesSelectedIds" sf-taxonomy-id="{{formModel.flexCategoriesId}}" sf-dialog-header="Flex Categories"><br></sf-list-selector>

     

    Angular controller is as follow:

    var app = angular.module("app", ["sfSelectors", "sfImageField", "sfHtmlField", "modalDialog"]);
     
     
    app.controller("EditBlogPost", ["$scope", "$http"function ($scope, $http) {
     
        $scope.formModel = {};
     
        $scope.formModel.categoriesSelectedItems = null;
        $scope.formModel.categoriesIds = ['206bdbdc-43e5-63ec-a373-ff07002886dc'];
     
        $scope.formModel.flexCategoriesId = '566adbdc-43e5-63ec-a373-ff07002886dc';
        $scope.formModel.site = '694ed3dc-43e5-63ec-a373-ff07002886dc';
        $scope.formModel.culture = 'en-GB';
        $scope.formModel.provider = 'OpenAccessDataProvider';
     
    }]);

     

    Do I miss something since elements returned for that category is alsways the one from the global site, even when used on a market site with culture "en-GB" and for which site taxonomyhas been activated.

    Thanks per advance for your feedbacks

1 posts, 0 answered