|
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. |