I am writing a module that will have some of its own themeable full-page-rendering parts (i.e. wont use theme_page()) but will want to use some of the drupal-goodness stuff like blocks, etc.

in the smarty_page() function, you have a whole bunch of code for pulling into context all the necessary stuff to render a drupal page (i.e. from the beginning of the function through the big $vars = (....) assignment)

So, I would appreciate it if there was a simple call to get all the drupal stuff that is gotten in smarty_page() that I could use for theming my module (i.e. in the smarty_my_module() function)

I love Smarty for all my PHP work so I am thrilled that its availabe in drupal; I just need this one thing to make it a bit more flexible.

thanks
Mike

Comments

tclineks’s picture

Status: Active » Closed (won't fix)

There are several ways to go about such but I see this as an unneeded stray from the design.

Can you explain your needs in a little more detail -- there may be an alternative solution.

tclineks’s picture

On further thought...

The only context-specific data in smarty_page is the inner-most content -- you'll be generating this yourself in your module.

Just copy the logic and use it where you want.

This way it's not directly tied into the Smarty Theme Engine (which it shouldn't).