I have a custom section in one of my Umbraco V 8.17.0 projects. Now i try to add a Node Tree Picker to this custom section. I need to get the node id so I can get the content of this node in my controller.
Im unable to add the node-tree to my section, respectively I can add it but it only generates an a tag that leads me to the content section.
Can anyone tell me how to implement the Node Tree Picker in the custom section?
newsletter.html:
<div ng-controller="newsletterController">
<div class="custom" ng-show="select.model=='books'">
<h2>Pick a Node</h2>
<div class="umb-tree-picker">
<h2>Select a Node from the Content Tree</h2>
<umb-tree tree="content"
start-node="-1"
node-type="book"
show-selection="true"
on-init=""
on-select-node="onNodeSelected(node)">
</umb-tree>
<!-- Display the selected node -->
<div ng-if="selectedNode">
<h3>Selected Node:</h3>
<pre>{{ selectedNode | json }}</pre>
</div>
</div>
</div>
Node Tree Picker in custom section
I have a custom section in one of my Umbraco V 8.17.0 projects. Now i try to add a Node Tree Picker to this custom section. I need to get the node id so I can get the content of this node in my controller.
Im unable to add the node-tree to my section, respectively I can add it but it only generates an a tag that leads me to the content section.
Can anyone tell me how to implement the Node Tree Picker in the custom section?
newsletter.html:
is working on a reply...