Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Themes /

Discuss SilverStripe Themes.

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

Remove default template on 'view'

Go to End

4 Posts   966 Views


Community Member, 10 Posts

4 October 2011 at 10:52pm


Sorry if this is a noob question. Been looking all around but haven;t find a clue. Basically I would like to use a view based on existing page as a pop-up.

specialpage_controller extends page_controller {

static $allowed_actions = array (

/popup is displayed using, which includes the default header and footer for that template.

How do I remove that?

Many thanks in advance.


Forum Moderator, 1307 Posts

5 October 2011 at 12:04am

Are you saying that the template itself actually includes the page header and footer? In that case removing them from the file and doing a /?flush=1 should do the trick.

Or do you mean they are not in the template but for some obscure reason SilverStripe still includes them when generating the popup? In that case: are you sure the is actually used? If so then post your template and of the bit of code in your popup() function where you generate the output...


Community Member, 10 Posts

5 October 2011 at 12:19am

Ah!! I never knew this going to be so easy.

Thank you!! Placing specialpage_popup.css on root template folder do the tricks.


Forum Moderator, 1307 Posts

5 October 2011 at 1:10am

Thanking the wrong thread... Should go to Smurkas answering your same question(!) in another thread: