Copied to clipboard

Flag this post as spam?

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


  • Robert Stigsson 47 posts 158 karma points
    Oct 22, 2015 @ 08:09
    Robert Stigsson
    0

    TreePicker as a Macro DataType

    Hi!

    I want to have a TreePicker that only allows certain elements and starts at a specific point, in a Macro. The normal Multinode Treepicker works without any problem, but it isn't possible to use within a macro. Anyone got any idea?

    I have come this far, but it still allows multiple nodes, and it doesn't start at "NiceDocType", but at the outmost element. Can't you use startNode: {type:'Content', query:'$site/NiceDocType'} anymore?

    var test = dialogService.treePicker({
                minNumber: '1',
                maxNumber: '1',
                multiPicker: 'false',
                entityType: 'Content',
                startNode: { type: 'Content', query: '$site/NiceDocType' },
                treeAlias: 'content',
                filter: 'NiceFilter,NiceFilter2',
                filterCssClass: 'not-allowed not-published',
                section: 'content',
              callback: function(data) { alert(data); }
          });
    

    /Robert

  • 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