variorum
Latest Blog Entries:
More at PSB-Blog
powered_by.png, 1 kB

Show standard Component PDF Print E-mail
Written by Administrator   
Sunday, 23 April 2006

You want to show your user a specific Joomla Component when no Option(Component) is set, you want to show a default Component? It's totally easy.

What do we need? We need to work a bit in the index.php file which can be found in the Joomla root.
Search for these lines

if ($option == '') { if ($Itemid) {
As I don't want to change too much within existing code, and it's easier to remove we add simply this line infront of the existing lines I showed above.
Let's take a small example: I want to show the ExtCalendar if no option is set We just do this:
if ($option==""){$option ='com_extcalendar';}
(As usual replace the bold text with your text)
If you like you can now also change the ItemID, CategoryId and so on if the $option variable is empty.

 
Next >
Polls
Should I add a Wiki as an online Manual for the Products?
 
Who's Online
We have 8 guests online
PhSoftware hosted sites:
Praxis Heinze

Website of my mothers surgery
© 2003-2010 PhSoftware.de
Joomla! is Free Software released under the GNU/GPL License.