Micro Blog

prettyPhoto and prettyBox

If you didnt see the prettyBox module we put together for the January 2009 release Canvas then you need to take a look at it. Its a beautiful way to implement a gallery uin a module on your Joomla site. There are plenty of options available fro cropping and resizing images and then displaying the original image in a lightbox. You can view full setup information on the Canvas demo site.

 

PrettyPhoto is athe lightbox we used in the prettyBox module. It can also be used in stand alone mode. You can see some setup and markup instructions on the Canvas demo site .

FaceBox

The microBlog module that comes with the Organica template uses a nifty little technique where you can popup the introtext and fulltext of a content item in a lightbox called faceBox. You can read more about the microBlog module here. However you can also use the faceBox script as a stand alone option. Check out the instructions below for how to go about doing this.

 

Template Parameters

Organica has a diverse range of parameters accessible in the template administrator in Joomla 1.5 and the index.php file in Joomla 1.0.

 

Home Setup Sub Page layout
Sub Page layout

Organica comes with some amazing flexibility as you can see from the demo site. There are two main layouts - the frontPage layout and the subPage Layout. Within the subPage layout you get full control over the positioning and the widths of the four columns that are available when the subPage layout is triggered.

subPage.jpg

Setting the overall width

The width of thecontainer on the sub pages is set in the template administrator in Joomla 1.5 and the index.php file in Joomla 1.0. You can choose to set either a % or a px width depending on your needs. When doing this you need to make sure you obey the instructions below for setting the widths of the columns.

Percentage widths can have variable results at different screen resolutions so make sure you double check your settings on the front end of you site to make sure the columns dont slip below each other at low screen widths.

 

Controlling the four columns

The order in which the columns are displayed are controlled by the layout variable in the template administrator. Combined with the width setting below these layout options mean that you can have any layout variation you want - no more limitations!

The code below gives you an idea of how the columns are rendered according to the layout you have chosen.

 

$layout = "4";
// Layout 1 = MainBody | Left | Inset | Right
// Layout 2 = Left | MainBody | Inset | Right
// Layout 3 = Left | Inset | MainBody | Right
// Layout 4 = Left | Inset | Right | MainBody

 

The settings for the widths of the four columns are set in the administrator area of the template in Joomla 1.5 and the index.php file in Joomla 1.0. The widths are set via percentages which gives you the ultimate flexibility in the way that the columns span across the page. There are three groups of width settings depending on the number of columns published on a particular page (see below).

 

// To compensate for padding and margins the numbers below need to total not more than 86%
$col1Width = "10%";
$col2Width = "10%";
$col3Width = "20%";
$col4Width = "43%";

 

Multi Column Flex

Organica is set up to allow you to have a different number of columns per each page, which means you can have pages that have a more dense layout with 4 columns or go for some minimalism and only display one column. The template itself does all of the heavy lifting so you just need to publish the modules you want to use to specific pages and Organica will do the rest.

In the template administrator in Joomla 1.5 and the index.php file there are a group of three column widths available for you to set. The three groups relate to the pages that have two, three or four columns published. You still need to obey the rules for the columns widths as described above. If you do not have any modules published to the left, right or inset positions then the template will just display your content in fullwidth mode.

 

Here are some screenshots of organica in three column mode.

Layout 1.jpg
Layout 2.jpg
Layout 3.jpg
Organica - Four Column Layout.png
Organica - One Column.png
Organica - Three Column Layout.png
Organica - Two Columns.png

 

An example of setting up Organica to use three columns

Here is a step by step process for creating a three column layout with only the left and right module positions.

  1. Make sure that you have at least one module published to the left and right position.
  2. Select the layout option in the template administrator - in this example we will select layout1 - which will output the modules and content as follows: main content | left | inset | right. In this instance the inset column will collapse because there are no modules published to this position.
  3. Nominate the widths you want for the display eg The col1 width relates to the main content body, col2 relates to the left module position and col4 relates to the right module position. In this instance col3 has no bearing because the inset position does not have any modules published to it.

As you can see its incredibly easy to create your own layout by changing a few simple options.

As always you need to be careful with the widths you use and match it across multiple browsers - ie6 Im looking at you!

 

About

Sed eu sem vitae massa sagittis posuere. Quisque ut nisl non tellus iaculis cursus. Donec porta pellentesque magna. Duis dictum pellentesque magna. Ut vestibulum dolor et est. Nulla feugiat laoreet nulla. Morbi est lacus, auctor ut, blandit quis, posuere et, ante. Phasellus eros. Etiam orci diam, placerat et, pulvinar eget, egestas ut, lectus. Sed aliquet lectus in pede.

 

Listening

  • Building steam with a grain of sand
  • You cant go that way home
  • What does your soul look like?

Travelogue

Sed eu sem vitae massa sagittis posuere. Quisque ut nisl non tellus iaculis cursus. Donec porta pellentesque magna. Duis dictum pellentesque magna. Ut vestibulum dolor et est. Nulla feugiat laoreet nulla. Morbi est lacus, auctor ut, blandit quis, posuere et, ante. Phasellus eros. Etiam orci diam, placerat et, pulvinar eget, egestas ut, lectus. Sed aliquet lectus in pede.