Friday, August 20, 2010

Joomla 1.0 basics

Hi friends.
when it come to joomla 1.0 component development, there is one and only one thing that is need to be take care of, is the TASK(eg. delete,edit,cancel etc) that you pass in the component.
some time we pass the task through hidden fields also so that we can get it through the $_REQUEST(all though you can use $_POSTor $_GET but i would advice you to use $_REQUEST).


When building Joomla! components, modules or plugins we can define all configuration parameters through XML files. Some common parameter types are predefined and can be used in our Joomla! extensions.

Parameters in the Joomla for modules

Every parameter you define must have five basic attributes.

Parameter name, so you can reference it later in your code.
A default value to be displayed and used if no value is chosen.
A visible label
A description appearing when the mouse cursor hovers over it
The type of parameter
A categorized list is below:

Content

section - All published sections in a list category - All published categories in a list

Text Input
text - A standard text input
textarea - A plain textarea field
password - A standard text input where the characters are masked as they are entered editors

Selections
menu - All published menus in a list
menuitem - All published menu items in a list
filelist - A list of files to choose from, given a base folder path
folderlist - A list of folders to choose from, given a base folder path
imagelist - A list of images to choose from, given a base folder
path list - A list of items to choose from
radio - A list of radio selection items to choose from

Predefined
helpsites - A list of websites powering help file translations to choose from
languages - A list of installed languages to choose from
spacer - Creates a visual separation between parameters. No input value is required
Other
hidden - Creates a hidden form element with the value and name provided




soon i will be posting something which you have not seen before .
so just wait techies........



How to use H1 and H2 tag in the content pages



First of all i would like to tell you why we concerned with h1 and h2 tags,because they just help to optimize the page on the google(because google look for h1 and h2 tags for good optimization of the page on goolge page rank system).
in joomla 1.0 just look for the
function Title( &$row, &$params, &$access ) {

if ( $params->get( 'item_title' ) ) {
if ( $params->get( 'link_titles' ) && $row->link_on != '' ) {

?>

after the above code look
in the content.html.php and replace the "contentheading" class(its pre defined css file) with the h1 and the contenttitle with the h2 tag.
same in the joomla 1.5.I was just looking for the same solution but i found very confusing articles.

In simple words when ever you see content heading or content title replace the class with the tag you want. just replace td with the h1 or h2 .

No comments:

Post a Comment