Hi, Ok guys, how about this one:
SystemProperty.getProperty(SystemProperty.MAGNOLIA_WEBAPP); Regards from Vienna, Richard -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Unger, Richard Gesendet: Freitag, 14. Dezember 2012 11:55 An: Magnolia User-List Betreff: AW: [magnolia-user] Re: How to get context path? Hi, Hmmm... Another thought then: make it available via your Module class. Module classes can be loaded from anywhere using static methods of the ModuleManager. So inject the contextPath into your module class using juice, and then expose it to the command via a getter. Regards from Vienna, Richard -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Frank Sommer (via Magnolia Forums) Gesendet: Freitag, 14. Dezember 2012 11:45 An: Magnolia User List Betreff: [magnolia-user] Re: How to get context path? The injection doesn't work very well for Magnolia's commands. Guilty is the object pooling of commands. So you can try it, but I have my doubts. -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=6ae3bb79-9257-448d-bc8e-04e99508f43d ---------------------------------------------------------------- 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]> ---------------------------------------------------------------- ---------------------------------------------------------------- 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]> ----------------------------------------------------------------
