23.02.2015 Views

www.it-ebooks.info

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 2<br />

° ° file<br />

° ° hidden<br />

° ° image<br />

° ° label<br />

° ° link<br />

° ° multiline<br />

° ° multiselect<br />

° ° password<br />

° ° radio<br />

° ° radios<br />

° ° select<br />

° ° subm<strong>it</strong><br />

° ° textarea<br />

° ° text<br />

° ° time<br />

• sort_order: It specifies the pos<strong>it</strong>ion of the field, group, or section.<br />

• source_model: Certain type of fields such as a select field can take options<br />

from a source model. Magento already provides several useful classes under<br />

Mage/Adminhtml/Model/System/Config/Source. Some of the classes we<br />

can find are:<br />

° ° YesNo<br />

° ° Country<br />

° ° Currency<br />

° ° AllRegions<br />

° ° Category<br />

° ° Language<br />

By just using XML, we can build complex configuration options for our modules<br />

right on the Magento backend, w<strong>it</strong>hout having to worry about setting up templates<br />

for populating fields or validating data.<br />

[ 41 ]<br />

<strong>www</strong>.<strong>it</strong>-<strong>ebooks</strong>.<strong>info</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!