By melissa-b on
Hi all,
I found about Drupal about a week ago and I absolutely love it! I have an issue that I don't know the answer to...
I'd like to create a bunch of custom pages: a "special" front page (with different positions of boxes, large graphics, a bit different CSS, etc) and also have a "standard" page for story articles.
I am using plain PHP theme (I started by modifying Chameleon).
I did a lot of searching without finding any specific example. How do I do this? Please help me!
Thanks,
Mel
Comments
PHPTemplate plus a module or two
The front_page module is designed to do that kind of thing, You can specify that you want an unthemed page for a really different look.
Another approach could be to use the sections module and create a special theme for the front page.
I'd really recommend using the PHPTemplate engine. It will be the standard engine for the next release and it is generally the most flexible one IMO. It also has the advantage that far more people use it, and getting questions answered and finding code examples or docs should be much easier.
You could possibly even create what you want just by putting some conditional PHP statements into page.tpl.php that tweaks things a bit depending on the value of $is_front:
http://drupal.org/node/11812 (docs)
http://drupal.org/node/11812#comment-29765 (example)
Hope that's enough to get you started...
Thank you!
Thank you!
I'm not so keep on going to PHPTemplate because I don't really gain much at this time. I'll upgrade to it with next edition of my website :). Most of the code I've seen can be easily converted to PHP plain template... I didn't find too many probs :).
I'm starting with Frontpage module right now.
Thank again styro!
what you would
gain with phpTemplate is an easier upgrade path for your site to the next Drupal version. Also, there is more activity on phpTemplate based tricks and such then in straight php based themes.
But you can always concentrate on that later after you get your site deployed.
-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
"Sections" Module?
"Another approach could be to use the sections module and create a special theme for the front page."
What is the "Sections" module? Or did you mean the front_page section's module? Not trying to correct your English here. I'm a newbie and want to make sure I have access to all modules I may need. I cannot find a Sections Module,
Cheerily Yours,
Tim O'Laguna
Sections module
Is here:
http://drupal.org/project/sections
Because I don't actually use it myself, I didn't realise it hadn't been tagged for Drupal 4.6 yet (its in the cvs module list) which is why you probably weren't aware of it. Sorry about that :)
Because of that, I would recommend testing it out somewhere other than your production site before deciding whether it suits you or not.
If you want better feedback about how well the sections module works, start up a new thread with an appropriate subject line - you'd probably get better answers than you would buried in this thread :)
"Sections" Module?
"Another approach could be to use the sections module and create a special theme for the front page."
What is the "Sections" module? Or did you mean the front_page section's module? Not trying to correct your English here. I'm a newbie and want to make sure I have access to all modules I may need. I cannot find a Sections Module,
Cheerily Yours,
Tim O'Laguna
If you click on the link he
If you click on the link he provided, it will take you to the sections module download page. The sections module can allow changing the sites theme based on the url path
-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
Sections module
is a different module to the front_page module. Neither are core modules, and both have to be downloaded seperately from drupal.org.
The front_page module allows you to have a customised front_page.
The sections module allows you to specify that you want certain themes to appear on certain pages.
The are quite different, although both should be able to provide a 'special' home page for your site.
Hope that helps :)
Try FlexiMAX
For your custom story pages, check out the new patch to flexinode module: FlexiMAX (search for 'fleximax' and you'll get there).
Flexinode allows the creation of custom nodes with customized fields. Fleximax adds layout customization capabilities to flexinode. You don't even need to touch your tpl.php files.
Durval Tabach
archiclube.org
Durval Tabach