Site Setting

Navigation:  Development > System Definition >

Site Setting

Previous pageReturn to chapter overviewNext page

Site Setting Manage System Options. All these setting we can update from User Interface. Generally all settings are saved in bellow location:
 
/development/definition/site_settings

 
For example see : /development/definition/site_settings/sitesettings.xml

 

Below two function used to work with Site Setting Values
 

siteInfo

Setting

 

Each Group of setting options saved in <section> tag. Each Section has two parts, Base and Group.

 
Base
Base contain basic information like Name, Admin Tab, Title.

 

1.Name of section used in the URL of the setting page. Each batch of setting has a unique URL that we set in Interface Builder.
Format : [BASE URL]/admin/config/[SECTION NAME]
For example: www.example.com/admin/config/opts

2.Admin Tab select admin layout.

3.Title is the text display in the window.

 

Groups

Setting fields can arrange in different group. Each group contain a list of options to update. A group has two part <base> and <selections>. See below example:
 
<selections>
  <selection>
      <title>Site Title</title>
      <name>site_title</name>
      <default>Lipsum Dolor</default>
      <type>inputTag</type>
  </selection>
  <selection>
      <title>Admin Title</title>
      <name>admin_title</name>
      <default>Hodecli Mokoma Mas</default>
      <type>inputTag</type>
  </selection>
  <selection>
      <title>Copy Right Text</title>
      <name>copy_right_text</name>
      <default><![CDATA[Copy Right [year] [website]]]></default>
      <type>inputTag</type>
  </selection>
</selections>

 

Selection contain list of fields. Field has below options

1.<title> of the field display as a label in Data Grid.

2.<name> is the unique identifier that used to retrieve the value of the field.

3.<default> tag contain the default value of the field

4.<type> contain the input tag type. It can be inputTag, selectTag, fileTag, radioTag and textareaTag. For selectTag and radioTag. <options> tag added  to store the select item list. See below examples:

 

inputTag:
<selection>
  <title>Site Title</title>
  <name>site_title</name>
  <default>Lipsum Dolor</default>
  <type>inputTag</type>
</selection>

 
selectTag:
<selection>
  <title>Disable Quick Links</title>
  <name>disable_quick_links</name>
  <type>selectTag</type>
  <default>No</default>
  <options>
      <option value="Yes">Yes</option>
      <option value="No">No</option>
  </options>
</selection>

 
fileTag

<selection>
    <title>Website Logo</title>
    <name>site_logo</name>
    <hints>Webste Header Logo</hints>
    <default></default>
    <type>fileTag</type>
</selection>                

 

radioTag
<selection>
  <title>Background Image Position</title>
  <name>whitecloud_background_position</name>
  <type>radioTag</type>
  <default>bgdefault</default>
  <options>
      <option value="bgdefault">Default</option>
      <option value="bgstartfromtop">Start From Top</option>
      <option value="disable">Disable</option>
  </options>
</selection>

 

textareaTag

<selection>
    <title>Admin Note</title>
    <name>site_admin_note</name>
    <hints></hints>
    <default></default>
    <type>textareaTag</type>
</selection>