Saturday, March 20, 2010

Step by step guide to install component in Joomla

Step By Step Installation of Joomla 1.5 component

Hello World

Introduction:

A "hello world" program is a classic software program that prints "Hello world!" on a display device. It's very popular introductory tutorial for teaching a programming language or an application framework. Such a program is typically one of the simplest programs possible.
This Joomla 1.5 "hello world" component is not an exception. I will keep it as simple as possible. The main purpose of this component is to encourage joomla developers to implement joomla 1.5 components and my personal goal is to sort out my thoughts of "clean" component. Believe or not I' m also just a joomla developer learner.
If you have any comments please go to developers joomla1.5 forum My next tutorial will be "hello world" using the new MVC framework included in Joomla! 1.5, so keep in touch.

  1. Install joomla 1.5 beta 1
-my personal tip is to use xampplite http://www.apachefriends.org/en/xampp.html this package contains all we need to try joomla.
Pros :
    1. it doesn't install any rubbish
    2. we don't need to be afraid of getting interfere with our registry or services
    3. easy to install
    4. simple and portable (pack, copy, unpack, use; easy to change a directory path)


  1. Download component from website
  2. http://www.vojtechovsky.net/joomla/com_helloworld.zip

  1. Log in joomla as Administrator user
  2. Extensions->”Install/Uninstall”


joomla15 joomla component free


  1. Press “Browse” button and find you downloaded file com_helloworld.zip on your computer.

  1. Install component by pressing “Upload File & Install“button.

create joomla tutorial web site

  1. Test Administration module
  2. create new free joomla component




  1. Make menu for our new component
  2. download free component joomla
    free joomla tutorial complete guide
    Menus -> Main Menu -> New -HelloWorld(double click) ->Name: Show me HelloWORLD!

  1. Let's show me new component

Go to your joomla website and click on Show me HelloWORLD!link vojtechovsky joomla delphi tutorial



  1. What about component localization?
You will need to have installed czech language package. It's not finished in joomla 1.5 yet so let's cheat a little.
Copy “cs-CZ” folder from your joomla installation folder (e.g. c:\web\xampplite\htdocs\j15\installation\language\cs-CZ) to your language folder and your administrator language folder. (e.g. c:\web\xampplite\htdocs\j15\language\cs-CZ and c:\web\xampplite\htdocs\j15\administrator\language\cs-CZ )
If you didn't prepare it before the component instalation you have to uninstall/install the component.
Let's make some testing.

Go to Administrator section and select Czech language for both site/administrator as DEFAULT!

vojtechovsky create component joomla



Go to component administration/joomla site and see the component text in czech. component guide joomla15

joomla15 free component tutorial


  1. Check out the joomla system log file
[joomla folder ] + \logs\error.log
(e.g. c:\web\xampplite\htdocs\j15\logs\error.log )
#Version: 1.0
#Date: 2007-02-06 16:51:17
#Fields: date time level c-ip status comment
#Software: Joomla! 1.5.0 Beta [ Khepri ] 12-Oct-2006 00:00 GMT
2007-02-06 16:51:17 0 127.0.0.1 1 hellodefault :Hello World. I just finished my first Joomla 1.5 component.
2007-02-06 16:51:26 0 127.0.0.1 1 helloworld :Hello World
2007-02-06 16:51:29 0 127.0.0.1 1 helloagain :Hello Again
2007-02-07 17:03:18 0 127.0.0.1 1 helloagain :Hello Again
2007-02-07 17:03:20 0 127.0.0.1 1 helloworld :Hello World
2007-02-07 17:05:00 0 127.0.0.1 1 helloworld :Ahoj Světe
2007-02-07 17:05:03 0 127.0.0.1 1 helloagain :Ahoj Znova
2007-02-07 17:05:11 0 127.0.0.1 1 helloworld :Ahoj Světe
2007-02-08 16:55:54 0 127.0.0.1 1 helloworld :Hello World
2007-02-08 16:55:58 0 127.0.0.1 1 helloagain :Hello Again
2007-02-08 16:56:14 0 127.0.0.1 1 hellotestfoo :Ahoj Světe, moje první testovací funkce byla právě spuštěna.
courtesy: http://www.vojtechovsky.net/joomla/

No comments:

Post a Comment

Followers