Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

Specifically I'm looking for something as simple as having the HTML/CSS/JS theme ready as static files and then just filling in the dynamic parts using PHP/Drupal. This is more or less how WordPress and other CMSs do it.

Are there any modules or other theming engines that do this?

Thank you.

share|improve this question
    
This is pretty much the same case with Drupal. What part do you find difficult and need a module for? –  Varshith Apr 9 '12 at 9:39
    
I'm not familiar with Wordpress, so could you please clarify what you mean? In Drupal, the CSS files are already static files... –  Patrick Kenny Apr 9 '12 at 9:39
    
Basically I want to avoid the .info file (which includes the JS and CSS files to be included) and also the automatic inclusion of RDF syntax in my theme. I also want to avoid the standard template.php file which is full of PHP functions. I heard there are different theming engines for Drupal and I'm looking for something easier to use. Thanks for the feedback guys. –  Mario Awad Apr 9 '12 at 18:37
add comment

2 Answers 2

up vote 2 down vote accepted

The short answer is "no." At least not at the level you are looking for.

A .info file is always required for a Drupal theme, this is how Drupal recognizes that the theme exists. Adding CSS and JS within this file is important because of CSS/JS caching which is important for site performance and other reasons. You should read the Drupal Theming Guide for more information, if you haven't.

There is, however, no requirement for template.php in a theme. If you do not want to utilize RDF on your site, you can disable the core RDF module.

There are other Theme Engines for Drupal, but they have all been abandoned in favor of PHPTemplate in Drupal 7. There are also a number of contributed base themes for Drupal, which are helpful for getting started with theming more quickly.

Unfortunately, the theming approach of Drupal is often a shock for users coming from other CMSes, especially Wordpress. The inherit flexibility and functional power in (and legacy of) Drupal core necessitates an extremely complex theming layer. You are not going to find a Wordpress-like experience in Drupal 7.

share|improve this answer
    
Thank you for the detailed answer and tips. I love that Drupal adds an ID after each CSS important so that updates/clear-caches force a CSS re-fetching even when your ISP uses caching. This is basically the .info file's job. Time for me to dive in deeper. By the way, I found this excellent base theme for Drupal: himer.us/omega960 - cheers. –  Mario Awad Apr 18 '12 at 10:12
add comment

You can try creating sub-themes by following the procedure given here. Modifying is easier then creating a new theme from scratch(my experience).

share|improve this answer
    
True but unfortunately by sub-theming you can't have full control over what to include and what to exclude and you end up with a lot of overhead code. What I'm looking for is something real simple - annotate the HTML/CSS - and have your theme ready. Thanks. –  Mario Awad Apr 9 '12 at 18:38
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.