Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
How can I access XF properties from a component inside XF. "currentPage" returns main page.
Page > XF Component > XF > Custom Component
Solved! Go to Solution.
I did this for now
private Page getXFPage(Resource res) { if(res.getResourceType().equals("cq:Page")) { return res.adaptTo(Page.class); } return getXFPage(res.getParent()); }
View solution in original post
Views
Likes
Replies