I’m pretty good with HTML and CSS, and my PHP is coming along. I created a site (localhost, not on line yet) that consists of static pages. It’s set up like a book, where the content doesn’t change. Everything was going well until I decided to add comments so I would be able to receive feedback. If the site becomes popular, I would want to add a forum too. Realizing the potential for spam and intrusion attacks with email, comments, and forums – I decided to look into CMS. I spent some time with Wordpress, but it isn’t versatile enough to handle my site’s many different page structures. I’m starting to think the same is true of Drupal.
Time magazine, for example, has many different page types. It has the cover, an index, different article formats, full page adds, etc – many different page formats. My site is something like that. Its different pages are easy to code with a combination of HTML and CSS, but I’m finding it’s difficult to do the same with Drupal. For example, I don’t want a header, footer, or index on every page, but I want them on some. I would probably need about 30 different themes to make my site look exactly the way I want. I’m also having trouble doing extremely simple things like adding tables, not for the page structure (I use divs), but instead, just inserting a simple table that looks like a few cells from a spreadsheet. I enabled Full HTML in the input format section under content administer, but still cannot code tables.
However, that’s not my question. I bought Pro Drupal Development by VanDyk and Westgate. The first sentence of Chapter-6 reads “Users are the reason for using Drupal.” Oh no! My site isn’t about users adding content. It’s like a versatile 300-page textbook, with links, audio, video, different page structures, etc. I’ll tweak and improve the content occasionally, but except for allowing comments, the whole site is static.
My question is – should I be using Drupal? I love the way it handles comments and it’s easier to edit content than when done with HTML. It has many modules I’m sure I’ll use someday, but designing pages by editing themes is more difficult and less versatile than when done with CSS alone. I got one page to look exactly as I wanted by commenting out most of a theme’s features in the PHP files, then changing the theme’s CSS. The whole process seemed sloppy. It took a long time and there wasn’t much left of the original theme by the time I finished. It seems that Drupal has too much overhead for what I’m trying to do – static pages, some with comments. Am I barking up the wrong tree here?
Comments
I don’t want a header,
You can use conditional statements in your page.tpl.php files to display contents only on some specific pages.
Have you tried Views module? that'd come handy..
well, i think u should tweak with the settings, look for some contributed modules to make your work easy which would otherwise be a pain..anyways, i'd go for drupal if i've to develop something like what you've said..
> I don’t want a header,
> I don’t want a header, footer, or index on every page, but I want them on some.
Not sure exactly what 'index' means but you can probably do some of this by putting the header and footer into a block, where is where they generally are anyway--then you can control where those blocks appear, i.e. on which pages, via block configuration.
HTH
I know what to do now
sayan and HershelSR,
Thank you for your advice about the page.tpl.php file, the view module, and blocks. I can see that Drupal is capable of doing everything I want to do and I will continue to learn it because I want to know more about PHP, MySQL, and the Drupal system.
However, I did a test and as expected, Drupal is slower than HTML/CSS. I created two sites, one with Drupal, the other with HTML/CSS. It took the localhost 18 seconds to bring up the Drupal site, but only 10 seconds for the HTML/CSS version. Once the site was up, it took between 1 and 2 seconds to go from one page to another within Drupal, but less than a second to do the same within the HTML/CSS site. For that reason, I will code the static portion of my site with HTML/CSS and handle the comments with the Disqus comment management system.
Again, I thank you for taking the time to advise me.
Rufus-T
_
Just an fyi, but if you have lots of static content accessed by anonymous users but still want to maintain one infrastructure and admin interface, the http://drupal.org/project/boost module can render static drupal pages into regular html/css pages.