This conversation has been locked due to inactivity. Please create a new post.
This conversation has been locked due to inactivity. Please create a new post.
Is there any way by using sling model/exporter we can expose Navigation menu items in JSON/HTML/XML format.
Since Navigation component has only one field to author i.e. root page property and it populates all sub tree so only root path get stored on jcr:content. and we try model.json we get only root page path property in it. How to get all the tree values in json?
Solved! Go to Solution.
Views
Replies
Total Likes
Create a custom sling model exporter -
And populate the child nodes as u do it in navigation component >>>> iterate over the child nodes.
Views
Replies
Total Likes
Create a custom sling model exporter -
And populate the child nodes as u do it in navigation component >>>> iterate over the child nodes.
Views
Replies
Total Likes
Thank you but how to create xml using sling model.
Since for json it provides jackson, is there anything for xml ?
Views
Replies
Total Likes
Views
Replies
Total Likes