Jump to:

23450 Posts in 18899 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » Userform in a popup?

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 522 Views
  • nicknick
    Avatar
    Community Member
    15 Posts

    Userform in a popup? Link to this post

    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

  • haantje72
    Avatar
    Community Member
    69 Posts

    Re: Userform in a popup? Link to this post

    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

  • nicknick
    Avatar
    Community Member
    15 Posts

    Re: Userform in a popup? Link to this post

    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

  • DFwebuild
    Avatar
    Community Member
    1 Post

    Re: Userform in a popup? Link to this post

    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

    522 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.