I'm in the middle of migrating to 4.5, and I have a few places where I drop to scriptlet to do something I couldn't do with taglibs. Usually the scriplet begins with:
[code]<jsp:scriptlet> Content current = MgnlContext.getAggregationState().getCurrentContent(); </jsp:scriptlet>[/code] Now I am trying to avoid the Content API, so I assume I want to replace AggregationState.getCurrentContent with RenderingContext.getCurrentContent, but I'm not clear on how the best way to do that is. Would it be: [code]Node current = Component.getComponent(RenderingEngine.class).getRenderingContext().getCurrentContent()[/code] or should I take a different tack and try to get the "content" ContentMap from the attributes of one of my servlet scopes and call getJCRNode() on it? -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=03ec62eb-8378-4fe8-a74e-fc252ebcdbc5 ---------------------------------------------------------------- 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]> ----------------------------------------------------------------
