thanks.<br><br>and if I have my_page.tpl.php<br><br>how can i show my css with <?php print $head ?> and other content in my_module.module ?<br><br><br><br><div class="gmail_quote">On Wed, Mar 16, 2011 at 11:52 AM, Earl Miles <span dir="ltr"><<a href="mailto:merlin@logrus.com">merlin@logrus.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">You're on the wrong path.<br>
<br>
Normal page output, i.e, doing this:<br>
<br>
function my_page() {<br>
$output = 'blah'<br>
return $output;<br>
}<br>
<br>
...will be wrapped in theme('page').<br>
<br>
You have two options:<br>
<br>
1) Implement theme_preprocess_page, detect (somehow, you have to figure<br>
out how to detect this) that you need to be in a stripped down page, and<br>
set $variables['template_file'] = 'page-my-stripped-page.tpl.php'<br>
<br>
In Drupal 6, this is the best choice, because there are elements of a<br>
page you MUST have. i.e, the <head> tags which you probably want.<br>
<br>
2) Print your output directly and return NULL. If you return NULL (or 0,<br>
I think), the system assumes that you don't need to wrap in<br>
theme('page') because you already printed the output. This is commonly<br>
used for feeds and other things that aren't actually HTML pages. So:<br>
<br>
function my_page() {<br>
$output = 'blah'<br>
print $output;<br>
<div><div></div><div class="h5">}<br>
<br>
<br>
On 3/16/2011 7:13 AM, Damian Adriel Perez Valdes wrote:<br>
> hello:<br>
><br>
> i have a question. I need to make a page in my module with out a garland<br>
> theme, to show with a ligthbox module.<br>
><br>
> I use:<br>
><br>
> 'title' => 'Show',<br>
> 'page callback' => 'theme',<br>
> 'page arguments' => array('view_user'),<br>
> 'access callback' => TRUE,<br>
> 'type' => MENU_CALLBACK,<br>
><br>
> /**<br>
> * Implementation of hook_theme().<br>
> */<br>
> function show_theme() {<br>
> return array(<br>
> 'view_user' => array(<br>
> 'arguments' => array('view_user' => NULL, 'type' => 'html', 'node'<br>
> => NULL),<br>
> 'template' => 'page-user-view',<br>
> ),<br>
> );<br>
> }<br>
><br>
> it's work fine, but load with a garland theme. and i need white page,<br>
> without theme, because i load this page with lightbox2 module.<br>
><br>
> what can i do ?<br>
><br>
> thanks.<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>