_MP
Newbie   Posts: 1 Registered: 5/7/2007 Status: Offline
|
posted on 5/7/2007 at 06:30 PM |
Hi,
Im trying to make a page within a phpnuke module that i do not want to
display the headers and footers on but, i do want to establish the db
connection. The problem is, whenever i include the mainfile but, not the
header and footer the page is blank.
How do i not include the header and footers under autotheme?
I don't care if the theme doesn't load but, i need to include the mainfile
without the headers. The page is a small popup. Making a seperate db
connection is out of the question.
Please help and thanks,
Bill
EDIT:
I also cannot use the Custom Page thingy because, some of the pages in the
module i do want to include the header and footer on.
[Edited on 7/5/2007 by _MP] |
| |
| |
Shawn
Administrator   Posts: 4559 Registered: 10/7/2002 Status: Online
|
posted on 5/7/2007 at 06:54 PM |
The easiest way would be to create your module page just as you normally
would with the header, footer, mainfile, etc.. Make sure it works as
normal. then create a Custom Page in AutoTheme admin and assign a template
that is an HTML file without anything but the AT [modules] tag in it.
So if the page is accessed as: modules.php?name=MyModule&page=popup
1. In Admin > AutoTheme > Themes > YOURTHEME > Custom Pages,
Add a Custom Page in for MyMod with Page Options: page=popop
2. Assign the template popup.html as the Main Page template, popup.html can
look like this:
<html>
<head></head>
<body>
<--[modules]-->
</body>
</html>
Let me know,
Shawn
[Edited on 5/7/2007 by Shawn] |
| |
|
|
|
|
Page created in 0.243841 Seconds
|