Good morning every one, 

I did some more research about my little form dialog problem. 

Of course the dialog is not hard coded. But in the form template 
(/form/paragraphs/form.ftl) the paragraph is hardcoded:
 [[email protected] editLabel="Edit Form Settings" moveLabel="" deleteLabel="" 
paragraph="form" /]

This is the normal way we allways used the <cms:edidBar> tag and the paragraph 
name must be given if we are not within a content node iterator. 
I hesitate to just copy the template into my module (using my paragraph name) 
for two reasons: 
- STK and all related modules provide a coherent HTML that is probably not 
completly stable now. All themes (css, js) are based on this HTLM. Thus for STK 
projects I prefere to use standard STK templates only. If HTML will be fixed I 
don't have to check all my custom templates. 
- Hard coded paragraph names in templates breaks the new schema like way of 
defining content structures. I would prefere to use a variable here, something 
like ${cmsfn:currentParagraph().name}. 

Can this be fixed in the form module templates or do I have to create a custom 
template?
Is ${cmsfn:currentParagraph().name} an option?

Thanks any coments
Wolf
  

-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] 
Im Auftrag von Bubenik, Wolf
Gesendet: Montag, 16. Februar 2009 19:34
An: Magnolia User-List
Betreff: AW: [magnolia-user] Mgnl 4.0 RC3: providing custom forms for STK


Hallo, 

I still have the problem that magnolia does not render the dialog I configured 
for my form paragraph.

I guess that there is a bug, probably in the form module. The dialog name for 
the form paragraph seems to bee hard coded (or configured somewhere else). 

Any sugestions, how to fix this?

Thanks a lot

Wolf

-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] 
Im Auftrag von Bubenik, Wolf
Gesendet: Freitag, 13. Februar 2009 16:38
An: Magnolia User-List
Betreff: [magnolia-user] Mgnl 4.0 RC3: providing custom forms for STK


Hallo, 
 
for my module I want to provide a new stk template with a customized
form. 
 
What I did: 
1) The Template: 
- copied stk-template 'stkForm' to
myModule/templates/newsletter/subscribe (changed template name to
'subscribe')
- changed mainArea.singletonParagraph to 'subscribeForm' 
2) The paragraph: 
- copied form paragraph 'form' from the form module to
myModule/paragraphs/newsletter/subscribeForm (changed name to
'subscribeForm')
- changed dialog to 'subscribeForm'
- removed all formProcessors nodes (first step: do nothing, just
forward)
3) The dialog: 
- copied dialog 'form' from form module to
myModule/dialogs/newsletter/subscribeForm
- removed all email tabs (not needed)
 
Now I created a new page within the example project and choosed my new
template. When opening the page everything seems to be nice but when
opening the form dialog I still see the email-Tabs. Since I have deleted
these tabs for my custom dialog the system is displaing the wrong dialog
or the wrong paragraph. 
 
What did I do wrong? 
 
I am able to create a simple form and submit it. For the redirect after
submission I choose the domo home page. When sending the form I get a
404-page with RequestURI=/demo-project.html. 
 
No email-related errors show up on the console indicating to me that no
form actions where executed. The system uses the correct form paragraph.
 
2 Problems: 
- Why does the system render the wrong dialog?
- The generated redirect URL is uncomplete (context path is missing).
 
Any suggestions how to get around this?


Thanks

Wolf

----------------------------------------------------------------
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]>
----------------------------------------------------------------

Reply via email to