RSjoomla! - Quality Joomla! Components

My Account






Lost Password?
No account yet? Register

Newsletter Subscribe

If you would like to be one of the first people to hear about the release of our new components then make sure you have subscribed to our announcements list! We won't bug you with unnecessary stuff.




RSform!Pro Logo User Guide

Anatomy of a component 

In this section, you'll learn about the parts that make a component. From our point of view, a component has four distinct parts:

  • Caption: the text that describes shortly the component.
  • Body: the actual component.
  • Description: the components' extended description, as defined when creating the component.
  • Validation: the validation message shown whenever the component doesn't comply with the desired validation rules or the required property.

Now that we know what a component looks like, let's see how you can insert these parts into your layout. We defined a simple placeholder system. The general rule used is:

{component_name:part_name}

Let's see a short example on how to integrate our components into the layout. Suppose you created a text box named user_mail and want it to be displayed in the layout. In order to do that, write this in the layout section of RSForm 2.0

{user_mail:caption}
{user_mail:body}
{user_mail:description}
{user_mail:validation}
 
Let's see another example. Suppose you have three components, a text box (named username), a select list (named user_option) and a submit button with the reset button active (named submit_button). Further more, you want to display these components in a table like view, with the submit and reset button in the center. To do this, write: