#1 January 21, 2020 3:14am

tunga
Member
Registered: December 5, 2017
Posts: 8

Printable page

I want to create a custom action that opens printable version of some data for my view.  How do I open the page that doesn't include admin header and footer in it?

Offline

#2 January 21, 2020 8:35am

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 978

Re: Printable page

You can change the layout of the admin in the same way you do the front end templates by setting $bigtree["layout"] to a different type.

e.g. If you wanted something blank would create blank.php in /custom/admin/layouts/ with this code:

<?php
   echo $bigtree["content"];

Then in your custom action file you'd set $bigtree["layout"] = "blank";

Offline

#3 February 3, 2020 6:09pm

tunga
Member
Registered: December 5, 2017
Posts: 8

Re: Printable page

Thank you so much, timbuckingham. How do I open that page in the new tab?

Offline

#4 February 3, 2020 6:45pm

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 978

Re: Printable page

You can’t open actions in a new tab by default. You would need to create a custom view entirely to do that.

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.