- For a demo of this template, please click here.
- For more information about the template, and to download it, please visit JoomlArt's JA Purity II Forum by clicking here.
BTW - My version does look a bit different than the default JA_PURITY_II template setup, since I am a hacker (lol).
I guess this would be a good time to introduce what this tutorial REALLY is about..
.
What do we want to do?
In addition to being a very devoted Joomla! user and developer (or should we say "changer" or hacker...), I have about 12-13 years of experience with Oracle and Oracle PL/SQL. So, under the menu at the top you will find the menu item(s) "Library / PLSQL / String Functions". This is a sample of how it looks like without any introtext shown:
Well, so...what's the problem...? You see...even if I have been an Oracle PL/SQL developer for so many years, I don't remember everything I have learned before... Let's say that you want to do something with a string in PL/SQL, but you can not rememeber what the name of that darn function was, and even if you see all the names of the string functions, you don't remember if it was this or that function. So, to make the life easier for the users of my web site, I made this nice little change:

This way the user can scroll through the list and see a quick intro of what the different funtions do without opening the article.
I have full control over where I want to use this functionality or not through my "String Functions" menu in my "mainmenu" setup on my Joomla! Administration pages.
On the "String Functions" parameter settings under "Parameters (Component) / Show Intro Text" I can choose between "Show", "Use Global", or "Hide".
How do we do it?
To do this change we need to change one of the core Joomla! 1.5 files, BUT not directly. We use the ability in Joomla! 1.5 to do an "override". If you are not familiar with how to override files in Joomla! 1.5, please read this document:"Understanding Output Overrides".
Luckily, by using JA_PURITY_II, we get a lot for free, since many files are already put in override positions (through having been placed in the correct folders under the template) as a default.
The file we are looking for is named "default_items.php".You can find this file under the folder "/www/templates/ja_purity_ii/html/com_content/category". Inside this file we are looking for a place to add three lines, and that would be after line # 96:
<?php if ($this->params->get('show_intro')) : ?>
<br /><<?php echo $item->introtext; ?>
<?php endif; ?>
Well, that is it... That should be all we have to do to be "good to go".
This will work similar in the standard tempate as well. Override the file by putting it under the correct folder under your template. It looks like you have to add the three lines above after line # 76.
How this tutorial was good information for you.
~ TJ
Viewed 495 times so far.
Like this? Tweet it to your followers!
Latest articles from TJ Abrahamsen
-
How To Access A Hidden Page In Joomla
posted on Tuesday, 09 February 2010 11:21
Some times I have wanted to be able to access a page on my Joomla!…
-
How To Change Joomla 1.5 favicon (that works)
posted on Monday, 08 February 2010 21:51
Lately I have been creating a three different Joomla! 1.5 web sites, and I have…
-
How To Set Up Joomla RSS In Feedburner
posted on Thursday, 04 February 2010 22:04
When setting up my second blog/web site, OraBlogger.net, and I wanted to set up syndication…
-
How to Show Introtext In Category List?
posted on Thursday, 04 February 2010 21:04
Have you ever gotten something good, but you just want more...? Have you ever gone…
-
JComments
posted on Thursday, 04 February 2010 20:04
As you probably have noticed, this web page is created using Joomla! CMS (Content Management…
Latest 'tweets' from TJ Abrahamsen
- RT @tweetmeme How To Access A Hidden Page In Joomla | Joomla How-to - JoomlaBeacon.net http://tinyurl.com/yel8qpq Link Tuesday, 09 February 2010 06:56
- RT @joomlablogger How to upgrade sh404SEF - Joomla Extension Tips - Joomla tips http://is.gd/7VDIB Link Tuesday, 09 February 2010 05:09
- How to ALWAYS see your changes to your favicon.ico file right away. Take a look at my new post on http://tinyurl.com/ybl7wnq Link Monday, 08 February 2010 19:34
- Requesting an invite for Tweetboard Alpha (http://tweetboard.com) by @140ware, for my site: http://joomlabeacon.net http://po.st/uqz Link Thursday, 04 February 2010 23:41
- Link Saturday, 04 September 2010 18:17
Hello Joomla! friend. I am TJ. My goal with JoomlaBeacon is to be a Joomla! A-Z guide (beacon) for your own Joomla! based site. Please don't hesitate to comment, email, or suggest topics. 







