Greg, ImageClass is set to photo as it should be but it model.image fails in get(image). I assume this is because my new root project isn't set as the site root. I can't see where I can change the site root from the demo-project to my new project. Using Community edition. Thanks Jon
>>> On 23/11/10 at 17:06, Grégory Joseph<[email protected]> wrote: Jon, Can't guess exactly what's wrong, but as a starting point, you could edit the templating-kit/paragraphs/content/textImage.ftl template inline (don't forget to "enable" it), and print out the values of model.image and model.imageClass before calling the [...@image] macro, like so <p> model.image : ${model.image} <br/> model.imageClass : ${model.imageClass} </p> I'm guessing one of those two might be missing... -g On Nov 19, 2010, at 12:44, Jon RINGWOOD PSE 55500 wrote: > Can anyone give me some help with a problem I'm having with adding images? > > I've created a template definition in my new project and added the standard stkTextImage paragraph. The dialog appears as expected allowing either uploaded or dms images to be selected but on saving the dialog I get a Freemarker error: > > get(image) failed on instance of info.magnolia.module.templatingkit.paragraphs.TextImageModel > The problematic instruction: > ---------- > ==> macro image [on line 2, column 1 in templating-kit/paragraphs/macros/image.ftl] > in user-directive image [on line 15, column 1 in templating-kit/paragraphs/content/textImage.ftl] > > The paragraph works ok with the stk templates so assume that I have a configuration setting that I need to change. Can anyone advise? > > Thanks > > Jon > > > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- > -- > This email and any other accompanying document (s) contain information from Kent Police, which is confidential or privileged. The information is intended to be for the exclusive use of the individual(s) or bodies to whom it is addressed. The content including any subsequent replies could be disclosable if relating to a criminal investigation or civil proceedings. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this email in error, please notify us immediately by contacting the sender or telephoning 01622 690690. > ---------------------------------------------------------------- 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]> ----------------------------------------------------------------
