Jump to:

3392 Posts in 976 Topics by 852 members

Template Questions

SilverStripe Forums » Template Questions » How to call/show a template in a lightbox witohut the theme (plain/raw view)

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

Page: 1
Go to End
Author Topic: 433 Views
  • kharmer
    Avatar
    Community Member
    8 Posts

    How to call/show a template in a lightbox witohut the theme (plain/raw view) Link to this post

    Hi all,

    How would I call, from one template, another template inside a light box. And without the theme warapped around it?

    I have a list page and a button to Add a new item and would like the page for adding new item to be displayed to user in lightbox from the listing page (to make workflow faster).

    I tried searching but didnt have any joy finding what I needed! If anyone has some handy tips or references on the web I'd really appreciate them.

    Best regards,
    K...

  • kharmer
    Avatar
    Community Member
    8 Posts

    Re: How to call/show a template in a lightbox witohut the theme (plain/raw view) Link to this post

    OK, I implemented fancybox for the lightbox.

    I then, on each lightbox link, added a param ?modal=1 and grabbed this from the page.php and used it to show/hide elements in the page.ss so that existing templates extending 'page' can carry on doing so but without the themes header and footer etc.

    Hope this helps somebody with similar query.

    K...

    433 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.