Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Configuring global theme features and post settings

From: Drupal 6: Creating and Editing Custom Themes

Video: Configuring global theme features and post settings

In Drupal, themes have features. These theme features allow designers to toggle elements a theme can control, like if the site logo is shown or not. In addition to features, Drupal themes share global display settings that allow you to set which node types would have author info appearing in them, which is perfect for blog posts, but not pages or our flower products. Let's see what features and post settings are available in Drupal 6, and how they affect all themes. So to configure the global theme settings for our Drupal site, we need to visit the Themes Administration page.

Configuring global theme features and post settings

In Drupal, themes have features. These theme features allow designers to toggle elements a theme can control, like if the site logo is shown or not. In addition to features, Drupal themes share global display settings that allow you to set which node types would have author info appearing in them, which is perfect for blog posts, but not pages or our flower products. Let's see what features and post settings are available in Drupal 6, and how they affect all themes. So to configure the global theme settings for our Drupal site, we need to visit the Themes Administration page.

So from the Administer screen, we click Themes and there is actually a tab up here at the top that says Configure. Now this Configure link is different from the configure links that appear next to each theme that is only enabled. We are not going to go here. We are going to, actually, click up in this tab, next to List, and this brings us to the Global Settings page for themes. Now this page will actually affect all themes across our site. Right now we only have Garland, but we can still set these settings now, and have our custom themes pick up these settings later.

So the first side that I'll introduce to you is the Toggle display side, these are the theme features I was mentioning, and we can do things like toggle off the Logo, toggle off even things like Primary links. The Primary links, remember, are our main menu navigation up at top, and the logo appears in the top left corner of Garland. So with the Logo now off and the Primary links also off, let's click Save configuration, and see what happens.

Now we see that Drupal has respected our feature settings, and has removed the logo and the primary menu. Let's bring those back, Logo and Primary links, Save configuration and now they are back. There is one feature, before we leave this box, that I want to make sure is enabled, and that's the Search box. We are going to use this in our custom theme later on. So make sure it's enabled. Now coming to the right side of this administration screen, we see the Display post information, and in here is actually a list of every content type, or node type that is actually installed into our site.

So we see that default Drupal content types: Blog, Page and Story and any of our custom types, which, right now, we have as Flower. This Display post information, as it outlines in this help text, is actually where you can deactivate, or remove the author name, and info details of the post, when they are viewed. So let's actually make sure that Pages do not have the author info, nor our flowers. So I am going to go to, actually, before I click Save configuration, I am going to go open the Homepage in the new tab. So we can see right now, we actually get the author details at the top of every Flower post, and of course, as expected, at the top of every blog post.

We do not want this on the flowers, but we do want this on the blogs. So let's go back to the Themes Administration screen, make sure we are in Global settings, and we are going to uncheck Flower and Page and click Save. So now that our configuration options have been saved, let's go refresh our Homepage tab and see how the flowers will now no longer carry the author details. Click refresh and now Drupal has removed the author info from the flower types, but, as expected, not from our blog types.

We can even check our services page, and see that it no longer also has the author info, nor the about us page, and that's what we want. So closing this tab, going back, we can now see that any content type that we create, or is added by a module that we install, would actually appear here, and we should come back to this screen anytime we've created a content type or install the module that provides a new type to make sure that we set which ones would actually have posts information and which one should not.

These standard features available to all Drupal 6 Themes are good enough for most users. Theme features are neat but are limited to the defaults that you see here in Drupal. If you're wondering if a custom theme can have its own custom features, this is possible, but it requires a lot of complex PHP programming, and should be left in the realm of developers.

Show transcript

This video is part of

Image for Drupal 6: Creating and Editing Custom Themes
Drupal 6: Creating and Editing Custom Themes

59 video lessons · 13776 viewers

Chris Charlton
Author

 
Expand all | Collapse all
  1. 8m 19s
    1. Welcome
      1m 3s
    2. Using the exercise files
      7m 16s
  2. 5m 17s
    1. Learning about Drupal themes
      2m 0s
    2. Building sites today with Drupal
      1m 7s
    3. Required knowledge and software
      2m 10s
  3. 22m 38s
    1. Installing Drupal 6 using Acquia
      4m 4s
    2. Configuring the appropriate modules for a Drupal site
      1m 59s
    3. Creating pages with standard node content types
      4m 48s
    4. Creating custom node content types
      6m 19s
    5. Adding RSS secondary content
      3m 11s
    6. Finalizing site navigation
      2m 17s
  4. 22m 0s
    1. Installing the Theme Developer module (aka Devel)
      6m 27s
    2. Ensuring cross-browser compatibility with conditional style sheets
      5m 16s
    3. Using Firefox extensions for site development
      6m 57s
    4. Working with Dreamweaver
      3m 20s
  5. 35m 13s
    1. Choosing a default theme
      2m 5s
    2. Touring the core themes
      5m 25s
    3. Configuring global theme features and post settings
      4m 46s
    4. Adding a logo and shortcut icon (favicon)
      4m 7s
    5. Setting the administration theme
      4m 0s
    6. Installing a new theme
      3m 47s
    7. Positioning blocks in theme regions
      5m 56s
    8. Setting user theme permissions
      5m 7s
  6. 40m 36s
    1. Using the Color module to change color schemes
      5m 0s
    2. Preparing to build a sub-theme
      7m 13s
    3. Building a sub-theme: Creating the .info file
      8m 51s
    4. Building a sub-theme: Adding custom styles (CSS)
      7m 25s
    5. Building a sub-theme: Adding custom theme regions
      12m 7s
  7. 35m 0s
    1. Exploring a theme folder
      3m 19s
    2. Setting up a theme .info file
      4m 7s
    3. Adding styles (CSS) to a theme
      7m 9s
    4. Including a style sheet for right to left readers
      1m 43s
    5. Creating a print style sheet
      3m 30s
    6. Adding JavaScript to a theme
      5m 49s
    7. Adding graphics and images to a theme
      3m 7s
    8. Understanding theme templates (tpl.php)
      3m 19s
    9. Understanding template variables
      2m 57s
  8. 30m 33s
    1. Understanding page templates
      8m 2s
    2. Creating a template to theme every page (page.tpl.php)
      6m 54s
    3. Creating a template to theme just the front page (page-front.tpl.php)
      4m 33s
    4. Creating a template to theme individual pages (page-node-nid.tpl.php)
      3m 43s
    5. Creating a template for "site offline" maintenance pages
      7m 21s
  9. 13m 20s
    1. Understanding node templates
      4m 24s
    2. Creating a template to theme every node (node.tpl.php)
      2m 16s
    3. Creating a template to theme custom node types (node-type.tpl.php)
      5m 10s
    4. Discovering node templates using the theme developer module
      1m 30s
  10. 21m 32s
    1. Understanding block templates
      3m 32s
    2. Creating a template to theme every block (block.tpl.php)
      2m 37s
    3. Creating a template to theme an individual block (block-module-delta.tpl.php)
      8m 26s
    4. Creating a template to theme all blocks from a single module (block-module.tpl.php)
      3m 41s
    5. Creating a template to theme all blocks in a certain region (block-region.tpl.php)
      3m 16s
  11. 7m 33s
    1. Exploring the comments template (comment.tpl.php)
      5m 20s
    2. Exploring other core modules and their templates (other tpl.php files)
      2m 13s
  12. 10m 5s
    1. Removing unnecessary modules
      1m 43s
    2. Optimizing site performance
      2m 17s
    3. Streamlining site files for launch
      1m 26s
    4. Troubleshooting when a white screen appears instead of Drupal
      3m 15s
    5. Touring Drupal community groups
      1m 24s
  13. 11s
    1. Goodbye
      11s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Drupal 6: Creating and Editing Custom Themes.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member ?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferences from the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your lynda.com subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.