-
1. Re: How to find currentpage path till the parsys
Kristian Wright Jan 29, 2013 12:41 AM (in response to Veena_07)You should be able to get the path to the current page by:
currentPage.getPath( )
-
2. Re: How to find currentpage path till the parsys
kasq Jan 29, 2013 12:39 AM (in response to Veena_07)String pagePath = currentPage.getPath();
-
3. Re: How to find currentpage path till the parsys
Veena_07 Jan 29, 2013 1:23 AM (in response to kasq)Ya current page path returns me till the page node.... i have a parsys inside the jcr :content..... I have to traverse till the parsys dynamically
-
4. Re: How to find currentpage path till the parsys
Veena_07 Jan 29, 2013 1:27 AM (in response to Veena_07)/content/test/jcr:content/<parsys>/start/survey suppose survey is one component. If i give currentpage.getPath it will give me /content/test.. But i have to go till parsys in a single go without traversing the node. Is it possible...? according to the person creating template <parsys> node name may vary
-
5. Re: How to find currentpage path till the parsys
kasq Jan 29, 2013 1:37 AM (in response to Veena_07)Hi again,
I don't know if understand your requirement correctly, but if you want a path to the survey component added to this dynamic parsys inside your page you can use inside survey.jsp file in the survey component something like:
String pathToSurveyComponent = component.getPath();
In that case you should have always in the String variable path to current component added to this parsys.
Regards,
kasq
-
6. Re: How to find currentpage path till the parsys
Veena_07 Jan 29, 2013 2:28 AM (in response to kasq)component.getPath is giving me component path in the crx starting with /apps/........
-
7. Re: How to find currentpage path till the parsys
kasq Jan 29, 2013 2:33 AM (in response to Veena_07)Sorry Vena, try to use instead:
currentNode.getPath()

