Hi all. I have this site with a front page and 2 subhome page, plus 1 page.tpl.php for the internal page.
All pages have the same header and footer. I don't want to rewrite the same header/footer (php+html code) 4 times, so my question is: how can i manage this situation ? How can I write only one header/footer ?
In the header and in the footer there are drupal functions (like theme()) and not only static html.
M.
PS: Sorry for the crosslist and bad english.
These probably aren't right, but it's how I would think about it:
I assume that blocks won't work in the header section otherwise you wouldn't be emailing?
Would <?php include("header.php"); ?> work? You could just have the code in one php file and kinda make your own template system :)
Holly
On 5/26/10 11:39 AM, "Michel Morelli" michel@ziobuddalabs.it wrote:
Hi all. I have this site with a front page and 2 subhome page, plus 1 page.tpl.php for the internal page.
All pages have the same header and footer. I don't want to rewrite the same header/footer (php+html code) 4 times, so my question is: how can i manage this situation ? How can I write only one header/footer ?
In the header and in the footer there are drupal functions (like theme()) and not only static html.
M.
PS: Sorry for the crosslist and bad english.
Holly Ferree, Graphic Designer, BFA 813.786.0852 hferree@gmail.com http://www.designbyholly.com/
Holly Ferree ha scritto:
Would <?php include("header.php"); ?> work? You could just have the code in one php file and kinda make your own template system :)
I will try, but if I don't wrong remember include() does not works with template variables (like $titles, $scripts, etc etc). .
However thanks for the reply.
M.
Then use:
<?php print $scripts; ?>
</ryan>
On Wed, May 26, 2010 at 10:47 AM, Michel Morelli michel@ziobuddalabs.itwrote:
Holly Ferree ha scritto:
Would <?php include("header.php"); ?> work? You could just have the code
in
one php file and kinda make your own template system :)
I will try, but if I don't wrong remember include() does not works with template variables (like $titles, $scripts, etc etc). .
However thanks for the reply.
M.
-- Michel 'ZioBudda' Morelli michel@ziobuddalabs.it Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660
http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ziodrupal.net MSN: michel@ziobuddalabs.it JABBER: michel@ziobuddalabs.it
themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes
Michel Morelli ha scritto:
Holly Ferree ha scritto:
Would <?php include("header.php"); ?> work? You could just have the code in one php file and kinda make your own template system :)
I will try, but if I don't wrong remember include() does not works with template variables (like $titles, $scripts, etc etc).
Ok. i'm wrong remember. It works. tnx.
Awesome! Congrat's
Holly
On 5/26/10 4:52 PM, "Michel Morelli" michel@ziobuddalabs.it wrote:
Michel Morelli ha scritto:
Holly Ferree ha scritto:
Would <?php include("header.php"); ?> work? You could just have the code in one php file and kinda make your own template system :)
I will try, but if I don't wrong remember include() does not works with template variables (like $titles, $scripts, etc etc).
Ok. i'm wrong remember. It works. tnx.
Holly Ferree, Graphic Designer, BFA 813.786.0852 hferree@gmail.com http://www.designbyholly.com/