[drupal-devel] Question about page serving mechanism
I read the "Drupal's page serving mechanism"(http://drupal.org/node/10858), and I had a impression that is impossible to a module handle all the content of the page that will be show to the user. Is that true? []s Fabiano Sant'Ana
On Sunday 03 July 2005 10:07 am, Fabiano Sant'Ana wrote:
I read the "Drupal's page serving mechanism"(http://drupal.org/node/10858), and I had a impression that is impossible to a module handle all the content of the page that will be show to the user. Is that true?
Nope. You can bypass theme('page', $output) and roll your own output wrapper. That's how RSS feeds are done in Drupal, for example. Matt
On Sunday 03 July 2005 17:07, Fabiano Sant'Ana wrote:
I read the "Drupal's page serving mechanism"(http://drupal.org/node/10858), and I had a impression that is impossible to a module handle all the content of the page that will be show to the user. Is that true?
Absolutely not. While most callbacks end with print theme('page', $output); (or its equiv. in HEAD, return $output) this is not a necessity. front_page module, for example, is able to print a non-themed front page. feed pages are also non-themed. So in short, you have absolute control. If you call theme('page', $output) you get back your $output themed and you can print it. If you do not call it, so be it. Regards NK
Fabiano Sant'Ana wrote:
I read the "Drupal's page serving mechanism"(http://drupal.org/node/10858), and I had a impression that is impossible to a module handle all the content of the page that will be show to the user. Is that true?
[]s Fabiano Sant'Ana
not true. you can not call theme('page') if you wish and just output whatever you want. just register a callback with hook_menu
participants (4)
-
Fabiano Sant'Ana -
Karoly Negyesi -
Matt Westgate -
Moshe Weitzman