SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2010
    Posts
    67
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Why CMS's tempaltes are made different than the standard ones?

    Why, let's say Wordpress themes are different by regular php. html, css themes.?? I read that a Wordpress theme must have like 5 or 6 extra files , some without purpose for me.... Maybe to support that extra options like adding additional modules that interact with the theme and such stuff?? I think basically is the interaction of the engine options that can alter is some way the template like adding an extra column or change the layout of the theme....

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,117
    Mentioned
    448 Post(s)
    Tagged
    8 Thread(s)
    WP themes are broken into various bits, like a header etc. Get yourself a copy of WP and have a look under the hood. For example, look at the default theme or maybe the classic theme and look at how the templates are broken up into different bits. If you want to build your own theme, you can duplicate one of these and mess with it to your heart's content.
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Forum Usage: Tips on posting code samples, images and more

    Forrest Gump: "IE is like a box of chocolates: you never know what you're gonna get."

  3. #3
    SitePoint Zealot bronze trophy
    Join Date
    Jan 2012
    Posts
    116
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    This is one of the ways, in my opinion, that Joomla and Drupal are friendlier to themers. Most template tweaking will involve dealing with one file -- index.php (Joomla) or template.php (Drupal).

    In the case of Joomla, this gives Wordpress slightly more flexibility, in the sense that it's easier to change out the layout of a page, based on what page is being served (slightly easier to have a different layout for the home page, about page, contact, etc.) if that's what you want. Either Joomla or Drupal will allow you to use separate files as well -- just not quite as neatly.

    Drupal has an advantage over BOTH Joomla and Wordpress ... in the sense that you can use the "Context" module. What the context module does is allow you to manually specify, through the admin GUI, what "areas" of your site are to be active, and to manually manipulate the layout of the various elements, depending on what page the user is on (and various other factors). Rather than sifting through 20 different template files to figure out which one has your header code for a given page. And if you ever dive in to panels, that will give you a GUI interface to alter the layout of everything, without ever having to touch a template file.

    The only downside is that, some people might find the process of sifting through 20 different template files ... less difficult than having to navigate through Drupal's admin interface. :-) And that's only a mild exaggeration.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •