Hi Rana, The info.magnolia.module.templatingkit.templates.SingletonParagraphTemplateModel overrides the execute() method from info.magnolia.module.templating.RenderingModelImpl. This is a non-STK class. You could extend this class yourself and implement an execute() method that is inspired on the stk example. That's what I meant.
Good luck, Bert ________________________________ Van: [email protected] [[email protected]] namens Rana Singh [[email protected]] Verzonden: vrijdag 30 juli 2010 11:48 Aan: Magnolia User-List Onderwerp: Re: [magnolia-user] Paragraph without a dialog Thanks so much for the quick answer. I know that there is more options in the STK, but due to license restriction I am now building the templates from scratch, so the STK is no good for me. Greg, by an empty dialog, do you mean an empty dialog which actually pops up with no fields? I'll look into this when I get some time on hand, thanks for help so far. Best Regards Rana On Fri, Jul 30, 2010 at 10:39 AM, Bert Leunis <[email protected]<mailto:[email protected]>> wrote: Hi Rana, I think that what you want is being done in the STK. You can define there the so-called 'autogenerated paragraph'. When a page is created, in the modelclass the execute method is called. That's the place where a paragraph is automatically created. Most of the time this is a singleton paragraph, that is: it is only to be used once on the page. You can take a look at info.magnolia.module.templatingkit.templates.SingletonParagraphTemplateModel.execute() for an example for inspiration. Or maybe this is not what you meant, if I see Gregs answer. Hope this helps anyway. Bye, Bert ________________________________ Van: [email protected]<mailto:[email protected]> [[email protected]<mailto:[email protected]>] namens Rana Singh [[email protected]<mailto:[email protected]>] Verzonden: vrijdag 30 juli 2010 10:20 Aan: Magnolia User-List Onderwerp: [magnolia-user] Paragraph without a dialog Dear All, I've got a simple question, I would like to create a normal paragraph but without any dialog attached to it. I would like it to just go to my jsp-file without a dialog popping up. Is this possible? I've read something about having a hidden value in the dialog, but not been able to make it work at this moment. Best Regards -- -- Rana Ranjit Singh Solutions Engineer | +47 413 50 220 Iterate AS | www.iterate.no<http://www.iterate.no> The Lean Software Development Consultancy ________________________________ ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]<mailto:[email protected]>> ---------------------------------------------------------------- -- -- Rana Ranjit Singh Solutions Engineer | +47 413 50 220 Iterate AS | www.iterate.no<http://www.iterate.no> The Lean Software Development Consultancy ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
