2

I apologize for the terribly basic question but I'm not even a particularly adept web dev. I've read that Drupal is great if you know exactly what you want to do (then the API is handy) but I don't even know what I need yet. That is what I am hoping to gain from this discussion.

I want a main content page which has a fancy content slider (using jQuery or something) which will be a selector for showing some basic information on these 2 or 3 subjects. I'm stuck on where I should be writing this mix of markup. In the template? Create "content" through a content type? Since there's a fair share of CSS and markup required to do this, I don't know if I can do that through the "basic page" content type that was there.

I'm looking for pointers that can teach me how I would become aware of what Drupal can and can not do.

migrated from stackoverflow.com Oct 17 '11 at 15:59

This question came from our site for professional and enthusiast programmers.

2

There are a number of options available to customise the front page -

have a look at http://www.devdaily.com/blog/post/php/how-customize-content-front-page-drupal

I usually go the route of creating a custom page-front.tpl.php (as explained in the link above) and then use a combination of views and blocks to get in the content I need.

hope this points you in the right direction...

  • Thanks, it's difficult to find the right resources, until I'm more familiar with the community. The link is making sense. I was really confused about the page templates, this is probably the fix I needed. Will update and mark as the answer if this fixes it. – Erode Jan 10 '11 at 11:11
  • Just be aware that if you use page-front.tpl.php and page.tpl.php you may need to do changes in both files. I try to use only page.tpl.php to keep changes in just one file and use drupal_is_front_page() function (api.drupal.org/api/drupal/includes--path.inc/function/…) whenever needed. – João Guilherme Jan 10 '11 at 13:30
  • Page building in a .tpl.php is an quick-n-dirty solution. It works, but it will be a nightmare to change the site's theme as everything will have to be rewritten. Building a page is a module job. – Pierre Buyle Oct 16 '11 at 8:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy