Hi all is there a simple way to include a userform in a popup, i would like to just include the $userform in a popup box rather than load a whole page including headers and menus?
Thanks
Nick
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
make an userform wich does not show up in the menu
make an link wich opens the popup. In the popup call by for instance an iframe the userform
or... (what i do myself with movies and should work for forms to)
use prettyphoto (place in the website root) and link your page/pages with prettyphoto
make the userform and do not show in menu
make an prettyphoto link in the page to load/project prettyphoto html pages
thanks for the reply, i had tried using a similar method but it delivered the whole page in the pop up header, logo, footer and everything else, I just want a popup showing just the form, i thought about adding new page headers and theme for the forms but didnt get any further, correct me if im wrong but wont your method show the whole page too or is there a special way of linking to just the form part?
thanks
nick
I came in the same problem, I solved by creating a simple template for UserDefinedForm page type (UserDefinedForm.ss), that shows only forms, without navigation, footer, etc etc. I've placed it in the 'templates' folder of my custom theme.
Cheers