Unfortunately, you are right. I've missed that when looking at the classes first time.
All system node data (jcr: and mgnl:) are filterd by the DefaultContent.getPrimitiveNodeDatas(). To work around this limitation, you would have to implement your own custom Tree class and override collectRenderedItems() and hasSubs() methods. In those two methods for any content of type mgnl:metaData you would need to access underlying JCR node and retrieve values directly to check for existence of the node data. HTH, Jan On Feb 7, 2011, at 8:22 PM, Hans Wichman wrote: > Hi Jan, > > thanks for taking the time to respond, it's well appreciated. > My tree is the JCRAdminTree class, the default that is being used for the JCR > Browser. I've added the MGNL_NODE_DATA and it doesn't change anything. I do > see node data for all other nodes. > > It looks like any node with a : in it's name, eg jcr: mgnl: are hidden, and I > am looking in the wrong place to unhide them. > > Any other ideas, things I might try are welcome! > > kind regards, > Hans > > From: [email protected] [[email protected]] On > Behalf Of Jan Haderka [[email protected]] > Sent: Monday, February 07, 2011 4:56 PM > To: Magnolia User-List > Subject: Re: [magnolia-user] showing template nodes in JCR browser > > I guess your tree implementation is not based on JCRAdminTree class then and > you don't see node data for any of the nodes, not just for meta data, correct? > To show node data try adding > tree.addItemType(ItemType.MGNL_NODE_DATA); > HTH, > Jan > > On Feb 7, 2011, at 4:22 PM, Hans Wichman wrote: > >> >> Hi, >> >> Hmm ok, well I see metadata but that's it. The rest is hidden. >> (if I query the jcr repository I can see it's there though) >> >> Regards, >> Hans >> >> -----Original Message----- >> From: [email protected] >> [mailto:[email protected]] On Behalf Of Jan Haderka >> Sent: maandag 7 februari 2011 15:55 >> To: Magnolia User-List >> Subject: Re: [magnolia-user] showing template nodes in JCR browser >> >> >> mgnl:template is a node data of meta data, not a node on its own. >> >> If you see meta data and all its meta data you should be able to see >> mgnl:template there too. >> >> HTH, >> Jan >> >> On Feb 7, 2011, at 3:48 PM, Hans Wichman wrote: >> >>> >>> Hi list, >>> >>> I'm trying to show the contents of the mgnl:template nodes in the JCR >>> (Website) browser. I've set a custom tree config class with: >>> >>> tree.addItemType(ItemType.NT_METADATA); >>> >>> tree.addItemType("mgnl:template"); >>> >>> (deprecated i know). >>> >>> So far the MetaData node shows up but not the mgnl:template nodes, any >>> ideas would be appreciated. >>> >>> regards, >>> Hans >>> >>> >>> ---------------------------------------------------------------- >>> For list details see >>> http://www.magnolia-cms.com/home/community/mailing-lists.html >>> To unsubscribe, E-mail to: <[email protected]> >>> ---------------------------------------------------------------- >> >> >> >> >> ---------------------------------------------------------------- >> For list details see >> http://www.magnolia-cms.com/home/community/mailing-lists.html >> To unsubscribe, E-mail to: <[email protected]> >> ---------------------------------------------------------------- >> >> >> >> ---------------------------------------------------------------- >> For list details see >> http://www.magnolia-cms.com/home/community/mailing-lists.html >> To unsubscribe, E-mail to: <[email protected]> >> ---------------------------------------------------------------- > > - > Best regards, > > Jan Haderka, PhD. > Magnolia International Ltd. > http://www.magnolia-cms.com > > http://twitter.com/magnolia_cms > http://facebook.com/Magnolia > -------------------------------------- > Magnolia® - Simple Open-Source Content Management > > > > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- > > > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
