Can someone help with a themeing question ..I am a newbie to both PHP and Html

kfoyil - April 7, 2008 - 17:05

I am having trouble cusimizing the themes how do I get my title and information to show up .. Ive read alot of the documentation. Do you have to code any change that is made to the themes. or am i missing something. Im willing to research but am having trouble finding a good place to start.

The best place to start for theme development is:

prbass - April 7, 2008 - 17:40

The best place to start for theme development is:

http://drupal.org/node/11819

However, if you haven't done any HTML/CSS stuff at all, I would start with an existing theme and change it as you need rather than trying to start from scratch.

The drupal learning curve is pretty steep - it won't help if you haven't done any html/css stuff before, but do persevere - I've been using Drupal for about 4 months now and I'm close to where I need to be.

Another really useful place to start is the Pro Drupal Development book: http://www.amazon.com/Pro-Drupal-Development-John-VanDyk/dp/1590597559/r...

It's not got much on CCK or Views, which is what you will really need to get going, but it provides a great outline of the theme system and the Drupal architecture.

Hope this helps.

So just to change the Title

kfoyil - April 7, 2008 - 17:45

So just to change the Title of the page i have to get into the code?

You need to explain

jmburnz - April 8, 2008 - 01:00

You need to explain precisely what it is you want to achieve - very precisely - your explanation is to vague...

For instance - what title? A node title, page title, page <title> etc etc...

Do you want to change its appearance, location, output etc?

The more you give, the more you will get :)

Im trying to just do some

kfoyil - April 8, 2008 - 04:24

Im trying to just do some basic things like change the Drupal text in the top left corner with my own .... Do I have to code to do that or create a custom logo? I just need some basic help to get started .. I cant fine where this code reside.

Settings?

Binary Bill - April 8, 2008 - 06:50

Well, depending on the theme you are using, you can change out the Logo image in the theme settings.
http://your_site.com/admin/build/themes/settings

You can also change the name of the site in the Site Information settings page.
http:///your_site.com/admin/settings/site-information

I am not sure if this is what you are looking for.

--
Alan

Many thanks anyone else that

kfoyil - April 8, 2008 - 22:00

Many thanks anyone else that has some basic pointers it would be appreciated

More Resources

Binary Bill - April 9, 2008 - 03:37

So, if you want to move around the Slogan or Title, you are opening a much bigger can of worms. This means you will want to get into theming. You should copy a theme, the Zen one preferably (http://drupal.org/project/zen), them rename the directory.

HTML/CSS Basics

You need to know some HTML/CSS basics. If you don't know this and want to do any sort of development or theming, you will have to start here.
http://www.w3schools.com/html/
http://www.w3schools.com/css/

There's a lot of stuff to learn here, but the basics are necessary.

PHP Basics

You should know some PHP basics. You don't have to get into programming so much as just knowing the syntax.
http://www.php.net/tut.php

Drupal Theming

Now, you can get into some Drupal Theming. I'll assume you are using Drupal 5, but I am sure you can find similar pages for Drupal 6.

Overall theming page:
http://drupal.org/theme-guide/5

You will be using the PHPTemplate Engine:
http://drupal.org/phptemplate

For the tasks that you want, you probably just need to look at the page.tpl.php. This is the template file for the structure of the page. You will find a list of variables you can use in your template.
http://drupal.org/node/11812

If you start with the Zen theme, you should be able to see all the variables in use. Also, realize that most themes will have less files and complexity. The Zen theme is meant to be a very robust starting point.

You should have a lot to do with all this. Good luck.

--
Alan

 
 

Drupal is a registered trademark of Dries Buytaert.