Copied to clipboard

Flag this post as spam?

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


  • Sören Deger 733 posts 2844 karma points c-trib
    Mar 14, 2015 @ 11:41
    Sören Deger
    0

    Contentpicker value is not display on reusing

    Hello,

    I reusing the contentpicker in my custom section. All works great, and the chosen content node is also display. But But if I click to another node in my custom tree and then go back to the node with the content picker the chosen content node is not display. If I reload browser the content node is show again.

    It's very strange, because if I let me show the json object of my content picker the value for the content node id is already set:

    I have tested this in all version between 7.1.7 and 7.2.2, but the problem exist in all versions?

    Maybe this can be an issue in umbraco?

     

    Thanks in advance.

    Best,

    Sören

  • Sören Deger 733 posts 2844 karma points c-trib
    Mar 14, 2015 @ 14:00
    Sören Deger
    0

    This is the code in my controller:

    $scope.mappingContentPicker =
        {
            label: localizationService.localize("mail2cms_parentDestinationNode"),
            description: '',
            view: 'contentpicker',
            config: {
                multiPicker: "0",
                entityType: "Document",
                startNode: {
                    query: "",
                    type: "content",
                    id: -1
                },
                filter: ""
            }
        };
    
    mappingResource.getById($routeParams.id).then(function (response) {
        $scope.mapping = response.data;
        $scope.mappingContentPicker.value = $scope.mapping.documents_destination;
    });

    View:

    <umb-property property="mappingContentPicker">
    <umb-editor model="mappingContentPicker"></umb-editor>
    </umb-property>

    Any ideas? Have anyone the same issue on reusing content picker?

     

    Best,

    Sören

Please Sign in or register to post replies

Write your reply to:

Draft