I've added in my code base and then given the same root path value in cq:dialog i.e. /planets.
But, when I open the dialog, it just shows the /planets but if I click on /planets then it doesn't show anything further. However, it should show other planets options in dialog tree.
Need to get data from Solr and create tree structure in dialog as it appears when we provide rootPath in pathfield and open the dialog. And, we don't want to create node structure in AEM.