Hi Christian, Given the "content" being rendered, you can say: content.getHandle()
Given the AggregationState, you can write: state.getCurrentContent().getHandle() Given nothing, you can write: MgnlContext.getAggregationState().getCurrentContent().getHandle() Regards from Vienna, Richard -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Christian Balaguer Jehle (via Magnolia Forums) Gesendet: Mittwoch, 08. August 2012 10:39 An: Magnolia User List Betreff: [magnolia-user] Get path of page currently being rendered Hi all Can someone show me different ways of getting the website tree path of the page currently being rendered? e.g. The url www.test.com/about-us is called and in the website tree /internet/test-com/en/about-us is being rendered. Now i want to get the path '/internet/test-com/en/about-us' out of the context or wherever. I'm inside a class which extends the info.magnolia.cms.i18n.DefaultMessagesManager and using Magnolia 4.4.9. -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=e7b872b4-40da-485f-945e-63703bf90f74 ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ---------------------------------------------------------------- ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
