Joomla 1.5 Flexi Template v2.3 Released

EMC23 - Web Development Blog

Joomla 1.5 Flexi Template v2.3 ReleasedleftThis could be my last update to the Flexi Template for Joomla 1.5 and what better version number to finish off on than 2.3.

The most significant addition to 2.3 is that I have combined the white and colour-coded styles into this single template and made the preferred style sheet selectable via the back end template manager.

Download Flexi Template v2.3Valid XHTML 1.0 Transitional

 

Notes on previous version development can be found in earlier blog entries.

View Live Demo

I've also split up the CSS files even more so than I had previously. It can be overwhelming at first as there is now 17 files in the CSS folder. Each are clearly labelled, and you should find yourself using only a few on a regular basis.

My main motivation was to separate the styles associated with Joomla-specific elements (like the login module and the contact component) from the bulk of the code. So in addition to menus.css, modules.css and layout.css, we have contact, login, and joomla.css, which contains the remaining Joomla elements (like error messages, polls, banners etc.)

Contact Component Override

Joomla 1.5 Flexi Template v2.3 Released

I've also made changes to the contact component override, mostly out of personal preference.

I disliked how the previous fields spanned across the entire width of the available space, and I found the spacing of the address information and icons too cramped. The only change I made to the override itself was surrounding the contact name in a h3 tag to give it more prominence and so it can be styled separately to the rest of the contact info. The rest of the changes are found in contact.css.

Colour-Coded vs White

The colour-coded style came in very handy when I first started building my own Joomla templates, because I could visually locate elements I wanted to edit and then easily find them in the CSS. I eventually stopped using it after I became familiar the Joomla-specific styles, and it became more work to strip away all the colours, than to find what I was looking for.

I hadn't updated the colour-coded version regularly, as the white version became more useful to me. I spent more time using the white version and therefore came across many of its inadequacies.

Beez Bugs

I've fixed two bugs in the Beez Overrides. One has to do with the display of the Miscellaneous Info in the contact component and is summarised here on Joomla.org.

The other has to do with the p.buttonheading in com_content/article/default.php.

When one hides the PDF/print/email icons using the individual article's Advanced Parameters, the containing element (p.buttonheading) does not disappear as it should. This makes little difference to the articles appearance in the front end, but since I like streamlined code, I had to fix it :)

<p class="buttonheading">
<?php if ($this->print) :
echo JHTML::_('icon.print_screen', $this->article, $this->params, $this->access);
elseif ($this->params->get('show_pdf_icon') || $this->params->get('show_print_icon') || $this->params->get('show_email_icon')) : ?>
<img src="/<?php echo $this->baseurl ?>/templates/<?php echo $mainframe->getTemplate(); ?>/images/trans.gif" alt="<?php echo JText::_('attention open in a new window'); ?>" />
<?php if ($this->params->get('show_pdf_icon')) :
echo JHTML::_('icon.pdf', $this->article, $this->params, $this->access);
endif;
if ($this->params->get('show_print_icon')) :
echo JHTML::_('icon.print_popup', $this->article, $this->params, $this->access);
endif;
if ($this->params->get('show_email_icon')) :
echo JHTML::_('icon.email', $this->article, $this->params, $this->access);
endif;
endif; ?>
</p>

is replaced with

<?php if ($this->params->get('show_print_icon') || $this->params->get('show_pdf_icon') || $this->params->get('show_email_icon')) { ?>

<p class="buttonheading">
<?php if ($this->print) :
echo JHTML::_('icon.print_screen', $this->article, $this->params, $this->access);
elseif ($this->params->get('show_pdf_icon') || $this->params->get('show_print_icon') || $this->params->get('show_email_icon')) : ?>
<img src="/<?php echo $this->baseurl ?>/templates/<?php echo $mainframe->getTemplate(); ?>/images/trans.gif" alt="<?php echo JText::_('attention open in a new window'); ?>" />
<?php if ($this->params->get('show_pdf_icon')) :
echo JHTML::_('icon.pdf', $this->article, $this->params, $this->access);
endif;
if ($this->params->get('show_print_icon')) :
echo JHTML::_('icon.print_popup', $this->article, $this->params, $this->access);
endif;
if ($this->params->get('show_email_icon')) :
echo JHTML::_('icon.email', $this->article, $this->params, $this->access);
endif;
endif; ?>
</p>
<?php } ?>

Flexi Template Module Positions

Flexi Template Div Positions

Comments (3)
Using k2 with EMC23's flexi template
1 Sunday, 07 August 2011 12:45
Lisa
K2 has its own style sheet in components/com_k2/css. On line 40, there is a rule for clearing a div, that sets the element height to 0.

This conflicts with the flexi template, making it appear not to work at all (one gets a white page). This is because I have used .clr throughout the flexi template's layout.

If you are using k2, you must change all instances of .clr to .clear in the flexi template's index.php
Issues changing editor using your template in Joomla 2.5
2 Wednesday, 07 November 2012 14:25
Tim Payne
Regardless if I change editor off or default or 3rd party editor, the TinyMCE editor remains active. Researching on the web, there were suggestions that it may be related to the template.

Thoughts?

Cheers!
Tim
Regarding WYSIWYG editor
3 Thursday, 08 November 2012 15:56
Lisa
Hi Tim,
Some links to the info you mention would be helpful. I've tried to replicate the issue and cannot. Also, please be aware that this particular template download is for Joomla 1.5.

Add your comment

Your name:
Subject:
Comment:

The Art of Dojogame

Our contribution to the CoderDojo movement - An online resource for web game creation. CoderDojo Kata

Facebook Icon

For a more intimate view of EMC23, meet us in our virtual living rooms.

Twitter Icon

Where Art, Activism, &Technology meet...

Joomla tip of the day

How do we know where a position is for a given template?

Joomla! has an easy way to see the template positions for any page. Just add the code ?tp=1 to the end of the URL.

So, for example, go back to the front end and enter the URL http://www.emc23.com?tp=1