Want to add intro text to your category tables?
Posted: Thu Jan 26, 2006 3:40 pm
Hi folks,
This little mini how-to is based on the solution from this post :http://forum.joomla.org/index.php/topic,12350.0.html
I've updated it a little to be relevant to Joomla 1.0.7.
This extended hack explains how to do the following:
What you will need:
Once you upload these files ***Timely reminder - BACK UP YOUR ORIGINAL FILES*** you will need to add a line to your language file (in my case its english.php)
After line 203
Add this:
You also need to add a few lines to your CSS file for the dynamic image resize and text styling. in your template_css.css and this:
A working example of this hack can be seen here: http://www.asghar.co.uk/content/category/4/17/51/
enjoy
This little mini how-to is based on the solution from this post :http://forum.joomla.org/index.php/topic,12350.0.html
I've updated it a little to be relevant to Joomla 1.0.7.
This extended hack explains how to do the following:
- Include Intro text in your category tables
- Dynamically thumbnail the intro text image (using only CSS)
- Style the intro text in the category table (I use this to make the text size a little smaller)
What you will need:
- About 5 minutes to either copy and paste or type
- A text editor
- The files attached to this post
Once you upload these files ***Timely reminder - BACK UP YOUR ORIGINAL FILES*** you will need to add a line to your language file (in my case its english.php)
After line 203
Code: Select all
DEFINE('_HEADER_TITLE','Item Title');
Add this:
Code: Select all
DEFINE('_HEADER_INTROTEXT','Item Description');
You also need to add a few lines to your CSS file for the dynamic image resize and text styling. in your template_css.css and this:
Code: Select all
.sectiontableentry2 img, .sectiontableentry1 img {
height: 18%; /*change this value to suit your site's layout*/
width: 18%; /*change this value to suit your site's layout*/
}
td.content_table_introtext {
font-size: .75em; /*change this value to suit your site's layout*/
}
A working example of this hack can be seen here: http://www.asghar.co.uk/content/category/4/17/51/
enjoy