Flexi Template Skeleton Version 2.0

LeftTo ensure I don't choke on this, I've broken this project into bite-sized pieces. Instead of trying to get all the juicy bits into one template, I'm going to add specific elements as I learn how best to integrate them.

Notes on my first attempt (version 1) are available here.

Because I am working with pre-existing template structures, the elements within do not necessarily function outside their intended environment, or in combination with other elements. For instance, the font-resizer from ja_purity is dependent on additional files scattered throughout the template folders, all of which also contain code for elements I do not wish to use.

Now, as I am trying (both for myself and for others like me) to keep this simple, I did not want to inadvertently add any irrelevant code by copying and pasting elements and files in order to get something working properly. I hope I have succeeded. If not, I have allowed myself plenty of room to revise, as I intend to use this template as a starting point for all my websites from here on. Bring on the debugging :)

Flexi Template v2 Download here (zip 500KB)

Live Demo Here


Below are the features included in the Joomla 1.5 Blank Skeleton (the template I used as a starting point) by Waseem Sadiq of www.bulletprooftemplates.com. Read Waseem's notes here.

Most importantly, to reiterate Waseem:

In the spirit of Joomla 1.5 and open source these templates are released under the same GPL/GNU License as Joomla itself.

View GNU General Public License
  1. Tableless XHTML /CSS based template code
  2. Suckerfish drop down main navigation
  3. Suckerfish flyout left and right column navigation
  4. Parent item indicators for dropdown and flyout menus
  5. SEO Source Ordering
  6. HTML overrides from Joomla default beez template
  7. 16 fully collapsible Module Positions
  8. Left-to-Right / Right-to-Left usability
  9. Fixed width with narrow / wide Unobtrusive Degradable Ajax Style Sheet Switcher
  10. On-page anchor links

A list of features I added:

  • colour-coded CSS -

    To easily see, associate, and separate layout and style elements. Joomla generates its own CSS tags for content styles and layouts. When I began customising Joomla templates, I had a lot of trouble with Joomla-specific CSS, mainly because it wasn't provided in list form. Firebug is the best tool for discovering "what lies beneath".

    I've impeded the issue here by using the Beez overrides, which remove most of Joomla's default table output and replaces it with div layouts with new tag names.

    I have applied either a border or a coloured background to most content elements as I have found it easier to remove the attributes I don't need. Besides, content formatting can, if done well, add that extra bit of design intricacy to a site, and having to undo elements reminds me that they are there to be styled!

 

  • footer teaser modules -

    Using the automatic width teaser technique from Waseem's template_config.php, I added another four module positions outside and below the content, just above the footer.

 

  • Font resizer (from ja_purity) -

    Rob helped separate the font-resizer from the rest of the features included in JA Purity's template tools. Details here.

 

  • Rounded corner modules -

    The technique I use is based on rhuk_milkyway's four graphics to make up a rounded module. This is a repeatable design technique. The graphics are oversized to allow for varying widths and lenghts, determined either by expanding content or changes to the columns' width in the CSS.

    The disadvantage is that the graphic's background colour and the background colour (of the module or column etc, depending) set in the CSS must be matched. If your background is not white, as it is in this example and in the accompanying graphics, then you must change the graphics themselves. I've included the source files to make these changes as easy as possible.

    There is also the h3 module title to consider. This can be enable/disabled. Note: The module style must be "rounded" for these graphics to appear at all.

 

  • Theme.css -

    This file contains common styling of layout elements (colours, background images and borders). The numerous CSS files in this template may cause a beginner to feel overwhelmed because different elements are kept within different CSS files. The main reason for this is to separate layout from style.

    In theory, the CSS that control layout will not have to be adjusted, only the template.css (Joomla-specific) and the theme.css (styles) need be edited (unless the main widths are changed, for example).

    This technique will allow for additional colour and background variations that can be selected by the admin via the back-end through the template manager, or by the user via the front-end akin to the width styles in this template. Rhuk_milkyway is a good working example of this technique (parameters) and it is something I will introduce in later versions.

 

  • Beez Overrides -

    Note:

    • ../templates/emc23flexiv2/html/com_content/article/default.php
    • ../catgeory/blog_item.php
    • ../section/blog_item.php
    all contain:<img src="/<?php echo $this->baseurl ?>/templates/emc23flexiv2/images/trans.gif" alt="<?php echo JText::_('attention open in a new window'); ?>" />This image path must be changed should the template be renamed, otherwise 'attention open in a new window' will display next to the Print, PDF, and Email icons. A detailed article on Understanding Output Overrides by Andrew Eddie found here.

  • ../templates/emc23flexiv2/javascript/styleswitch.js requires editing too, if the template name is changed. var stylepath = 'templates/emc23flexiv2/css/';

Flexi Template Module Positions

Flexi Template Div Positions

Comments (6)
LLseil
6 Tuesday, 22 June 2010 19:43
Lisa
LLseil - Logiciels libres au service du professionnel, meaning "OSS for the professional" have included a nice mention of the template. Hooray!
templatetools.php
5 Saturday, 17 April 2010 16:07
Lisa
I'm delighted you're finding the template useful Johnny. Many thanks for the feedback and especially for pointing out this issue. Consider it resolved :)
Quirks mode
4 Friday, 16 April 2010 15:12
Johnny
Hi,

First of all thanks for the template I love it!!

I found IE8 defaulting to quirks mode, resulting in a vertical navigation list and not a horizontal list. The reason was the comment line "" in templatetools.php. The comment before the doctype triggers IE 6, 7 and 8 in quirks mode. By moving the comment in templatetools.php to the php statement as "/* Modified from JA Purity */" this is resolved.

Thanks again!!
Johnny
Override fixes - Pagination
3 Monday, 01 February 2010 18:51
Lisa
One I was aware of is dealt with here by lcdweb:
Blank Joomla 1.5 template thread on Joomla.org

I love finding things like this. I've used both of his fixes.
W3C Validation
2 Monday, 01 February 2010 16:49
Lisa
A really effective method for pinpointing "spelling" mistakes. Using both the X/HTML and CSS validators, I found a handful of silly errors (like a missing "f" in font for h3). I will update the version for download asap.

Markup Validation

CSS Validation

As for the few other errors, I will have to explore them further. I am curious to see which are Joomla-specific.
Newflash module Beez override
1 Friday, 29 January 2010 19:45
Lisa
*Note to self:

Outputs Read more...Link when read more is enabled.

Examine.

Add your comment

Your name:
Subject:
Comment (you may use HTML tags here):

Join Us on Facebook

Facebook Icon

For a more intimate view of EMC23, meet us in our virtual living room - Become a Fan!

Where Art, Activism, and Technology meet...

Joomla tip of the day

When an admin clicks on a content page it gets locked to prevent others from editing it at the same time.

It becomes unlocked once the admin clicks "Cancel" or "Save".

However, if the admin closes the browser or leaves the page some other way, the file will remain locked until the admin in question returns to the content page and clicks "Save " or "Cancel".

Alternatively:

To unlock a page, logon as SuperAdmin and click System --> Global Checkin (at the end of the menu bar) this will unlock any files.