Hi, No, that's the JCR method. You could use that too, but I think what you are looking for is: info.magnolia.templating.functions.TemplatingFunctions#contentByIdentifier() --> no "get" in the name.
It was added (MAGNOLIA-4400) to TemplatingFunctions 3 months ago. Regards from Vienna, Richard -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von [email protected] Gesendet: Montag, 12. November 2012 11:04 An: [email protected] Betreff: RE: [magnolia-user] Migrating 4.4.x to 4.5.x - no getContentByUUID() Found it. Though its a method in the JCR session class, javax.jcr.Session#getNodeByIdentifier. What is the correct way of getting the session from you templates? -- Tomas ________________________________________ From: Brimor, Tomas /External Sent: Monday, November 12, 2012 10:59 To: Magnolia User-List Subject: RE: [magnolia-user] Migrating 4.4.x to 4.5.x - no getContentByUUID() Hmm, in which class would that be? I can't find that method anywhere. Sorry. -- Tomas ________________________________________ From: [email protected] [[email protected]] on behalf of Unger, Richard [[email protected]] Sent: Monday, November 12, 2012 10:50 To: Magnolia User-List Subject: AW: [magnolia-user] Migrating 4.4.x to 4.5.x - no getContentByUUID() Hi, I think it is now called getContentByIdentifier(). Regards from Vienna, Richard -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Tomas Brimor (via Magnolia Forums) Gesendet: Montag, 12. November 2012 10:44 An: Magnolia User List Betreff: [magnolia-user] Migrating 4.4.x to 4.5.x - no getContentByUUID() We are migrating from 4.4.6 to 4.5.4 and according to the instructions [url]http://wiki.magnolia-cms.com/display/DEV/Migrating+template+scripts[/url] mgnl should be replaced with cmsfn. The problem is that the cmsfn object is missing a method for fetching content by UUID which was available in the mgnl object. Is there any other object/way of doing this other than creating your own helper object? -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=5b840681-e166-4518-8d75-ceba08e25085 ---------------------------------------------------------------- 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]> ---------------------------------------------------------------- ---------------------------------------------------------------- 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]> ----------------------------------------------------------------
