Hi, I have just started playing with Magnolia. I have created the helloworld template and a page to use this template also called helloworld and this works fine.
Then I decided I wanted to add my own paragraph. So I created a paragraph template called orderedList and put this under the templating/paragraphs node in a folder called tmp. Next I am trying to figure out how to use the paragraph template to put a paragraph that is an ordered list into my helloworld page. So, using the JCR Browser I went to the helloworld node and created new content node called "content". Beneath "content" I created another content node called "favFruitList". The favFruitList node is set up with the following node data: list (a string list), paragraph (the name of the paragraph template - orderedList) and title (a string title). I modified my helloworld.jsp template to use <cms:contentNodeIterator contentNodeCollectionName="content> to iterate over the content under helloworld and include and render my favFruitList paragraph. However, this does not work. I get an IllegalStateException saying Paragraph notfound for page /helloworld/content/favFruitList After trying a few different things like checking the names are all correct I decided to debug the running application and find out what is going on under the covers. It turns out that the paragraph value is sourced from a MetaData node property called "template". As there is no value for the template MetaData node property my paragraph has no name and so is not found and the IllegalStateException is thrown from ParagraphRenderingFacade.render(). It is not possible (without customisation) to modify the MetaData nodes using the JCR Browser (or any other GUI tool I have found). However, this is a basic thing that I want to do so I have the feeling I must be missing something pretty big. I.e. there must be a way to set my paragraph in the MetaData node without having to resort to customisation. Can anyone offer any help? Thanks and apologies if I am missing the obvious. - Allan. -- Allan Boyd ioko Email: [EMAIL PROTECTED] Communications on or through ioko's computer systems may be monitored or recorded to secure effective system operation and for other lawful purposes. Unless otherwise agreed expressly in writing, this communication is to be treated as confidential and the information in it may not be used or disclosed except for the purpose for which it has been sent. If you have reason to believe that you are not the intended recipient of this communication, please contact the sender immediately. No employee is authorised to conclude any binding agreement on behalf of ioko with another party by e-mail without prior express written confirmation. ioko365 Ltd. VAT reg 656 2443 31. Reg no 3048367. All rights reserved. ---------------------------------------------------------------- for list details see http://documentation.magnolia.info/ ----------------------------------------------------------------
