December 15, 2013

8:42 am
2
In this article, we are going to discuss about How to create Joomla components using Component creator. we can create our own Joomla component from the website (http://www.component-creator.com). It is absolutely free. From this website, developers have created more than 10,000 components for Joomla. In this article, we going to discuss about step by step procedure to create Joomla component using Component creator website.

Step 1:

To create an own joomla component in component creator website, we need to create a new user account. (It's free). Click on the below link and create an account.

http://www.component-creator.com

Step 2:

After creating an account, login in to the website and click on the button "Add Component".

Step 3 :

Enter the following details to create a new Joomla component.

Name - Name of your component. Use the prefix (com_) - Be sure you use a unique when you create several components.
Display Name - This one will be displayed in your menu under "Components" section.
Target Joomla version - Select the joomla version. It supports Joomla 2.5 and Joomla 3.x.x

Also you can select the language, Copyright information, license information, Author Details.

After entering all the above details click on the "Save Component" button.

Now you will get a success message like "Component saved successfully. How about adding a table".

Step 4: Add tables

Adding a database table to your newly created component is the way that you will get a back-end and front-end interface for managing content.

To add table to your component follow the below steps.

  1. Click on the "Manually add tables" button.
  2. Add the table's name using as prefix #__yourcomponent_ like: #__yourcomponent_mytable
  3. Mark the checkbox to create the list view in administrator. Use the plural of the name to displays a label, like: My Tables
  4. Check the checkbox to add the form view in administrator. Place the label name for this one.
  5. Check the checkbox to enable the Frontend view.
  6. Check the checkbox to enable the ACL Control.
  7. After entering all the above details click on the "Create table" button. 

Now you will get a success message like "Your table was added successfully".

Step 5: Add fields to your table

You may need to add custom fields to manage and display custom content.

  1. Click on the "Add field" button.
  2. Field name - unique name; use lowercase without spaces.
  3. Fieldtype - like text, textarea, checkbox, radio buttons, etc.
  4. Optional fields.
  5. Check the checkbox to enable the form view and assign a custom name.
  6. Check the checkbox to enable a list view.
  7. After entering all the above details click on the "Add field" button.

Step 6 : Build the component

Now, you have a custom component with a single table. Now its time to generate the installer zip package.

Click on the "Build" button on the right or in the list of your components.

You'll get a message saying the the extension was created. The next extension file will have a name like this: com_yourcomponent-1.0.0.zip.

2 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. This stepwise instructions helped me to know how to create joomla component. It's a helpful info for joomla users.

    ReplyDelete