Hello all,

I have been digging around trying to find a way to create a 'sub page' layout within my xtemplate theme. My client wants a more graphically heavy layout for the top page, and a lighter layout for the subpages. But, and I hope I'm wrong, the template engine seems to be oriented only around having one layout for all pages, period.

Surely there are others out there who use Drupal and have 'sub page' layouts!

Thanks for any pointers!
pb

Comments

styro’s picture

mean by 'subpages'?

Are these like regions / blocks, or teaser nodes, or... ?

Have you looked at the front_page module? You could combine that with PHP snippets as well to achieve lots of different 'stuff'.

--
Anton

puffbunny-1’s picture

the front_page module is interesting, but I am not sure if it is what I am looking for.

I basically want to create a theme that has a three column layout for the top-most page (I should say 'node', actually), and a different two-column layout for all nodes beneath that.

I am an experienced ColdFusion developer but still woefully ignorant on PHP, I am afraid, so I need a little hand-holding here.

Thanks for your help!

styro’s picture

'top most page' do you mean 'homepage'? And by 'nodes beneath that' do you mean everything else?

If so, the front_page module lets you specify an unthemed homepage. That lets you create a different page design (eg 3 columns) to the themed pages (using a 2 column theme) you get everywhere else.

--
Anton

puffbunny-1’s picture

no by top-most-page, I mean top-most-node. We want the top-most page to be a drupal page, with blog posts and menu and calendar and all that, along with the full logo banner masthead and all that junk, and then with subpages to have a less-graphics and more-compact versions.

The Onion's website is a good example of what I am talking about. There is clearly at least two different layout templates in play between the main front page and individual story pages.