CHAPTER 5 ADDING AND CUSTOMIZING THEMES 155 (Personal web server)
Thursday, April 26th, 2007CHAPTER 5 ADDING AND CUSTOMIZING THEMES 155 Configure your theme by going to administer . themes and clicking the Configure tab (admin/themes/settings). See Chapter 2 for a complete discussion on how to configure a theme, including setting the primary and secondary links, toggling post information, and so on. Your theme is now installed and configured. To uninstall a theme, deactivate it from administer . themes (admin/themes) and remove it from the themesdirectory. Customizing Themes It is very convenient that Drupal offers so many nice-looking themes. Having a functional site that looks nice without needing to do any work is a great luxury, especially if your site s appearance isn t your main focus. However, most people will want their sites to have a unique look to them something that sets the site apart from others and contributes to the site s identity. Learning to customize existing themes or make new ones will greatly add to the quality of your Drupal experience. The most common way to theme a Drupal site is to start with an existing theme and add your own elements. By testing several existing themes and choosing the one that brings you closest to your goals, you often save hours of work. You won t need to worry about the basics, such as deciding how many columns to use, whether the design should be fixed width or flexible, the size of the header, and so on. By modifying an existing theme, you can work incrementally, changing one element at a time, slowly morphing it into an original creation. Many of the trickier problems will have already been solved by the theme s original author. On the other hand, a finished theme is often an intricate web of templates and style sheet information. If you find yourself spending a lot of time stripping away other people s ideas and longing for a clean slate, starting from scratch is not difficult and gives you the greatest control over your theme. Whether you decide to modify an existing theme or make your own, a good understanding of how themable functions and templates work will be necessary, especially if you intend to modify the HTML that is being output. Introducing Themable Functions The HTML output that is generated by Drupal has been carefully crafted to be accessible, lightweight, and easily styled with CSS. Despite this, you may find yourself wanting to change the HTML output in some way. Drupal takes great care to make this possible without forcing you to change the source code of the core files and modules. Instead, all HTML that is output comes from themable functions that can be overwritten from within individual themes. The role of the theme is to provide alternate versions of themable functions for the cases where different output is desired. Keeping these changes at the theme level, rather than needing to hack core files and modules, is a great advantage when it comes to upgrading Drupal to a new version, as it saves you from hunting down all the changes in the old version and reimplementing them in the new version. It is also necessary if you intend to host multiple sites from one codebase, a topic covered in Chapter 6. You can identify themable functions in the core includes and modules by their name, which starts with theme_. This naming convention allows Drupal to identify the function s role
Note: If you are looking for high quality webhost to host and run your jsp application check Vision christian web host services