Michael Aemisegger napisaƂ(a):

Tomasz Mazan wrote:

I've built my own dialog to manipulate contentNode data. It almost works.
In html-source of dialog window I've found :
<input type="hidden" name="mgnlParagraph" id="mgnlParagraph" value="" />
Value is empty, and then, when I try to save properties modified with dialog I see :

1) Properties from form in onSave method :
mgnlRepository = website
mgnlDialog = pl-touk-pageIncludeParagraph //in fact, it's name of paragraph
mgnlParagraph = //It mustn't be empty, right?

and

2) error when including paragraph
ERROR info.magnolia.cms.taglibs.Include 27.09.2005 10:34:49 -- Paragraph [] not found for page [/mySample/leftColInclude__/00]

I suppose I should use some additional parameters within my createDialog method, but I don't know which ?


check the request parameters of a sample dialog, e.g.

http://demoauthor.magnolia.info/magnoliaAuthor/.magnolia/dialogs/samplesTextImage.html?mgnlPath=/features&mgnlNodeCollection=mainColumnParagraphs&mgnlNode=08&mgnlParagraph=samplesTextImage&mgnlRichE=true&mgnlRichEPaste=textarea&mgnlRepository=website&mgnlCK=1127813336985

at least following are missing

mgnlPath
mgnlNodeCollection
mgnlNode

Michael, there is no problem with those parameters.
JS funcrtion mgnlOpenDialog fullfill them. Even those listed by you I can find in form in my onSave method.

All of them :
mgnlRichE = true
mgnlRichEPaste = textarea
mgnlSaveInfo = params.failed.Dispatcher,String,0,0,0
mgnlPath = /bankSample
mgnlRepository = website
mgnlDialog = pl-touk-pageIncludeParagraph
mgnlParagraph = //here's problem, it's empty but not lost during saving, but while creating dialog
mgnlNode = 0
mgnlNodeCollection = leftColInclude__
selectTemplatePath = /templates/jsp/bank-sample/balances
params.failed.Dispatcher =
mgnlJsCallback = opener.document.location.reload();window.close();

Beniamin


----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to