Creating fieldset in xml file of a module in joomla

This is the code of my mod_custom.xml file. I made another one field named “container_type” here that will determine if i am using this module to welcome the user or using it as a custom HTML.

<fieldset name="basic">
				<field
					name="prepare_content"
					type="radio"
					label="MOD_CUSTOM_FIELD_PREPARE_CONTENT_LABEL"
					description="MOD_CUSTOM_FIELD_PREPARE_CONTENT_DESC"
					default="1">
					<option
						value="0">JNo</option>
					<option
						value="1">JYes</option>
				</field>
				<field
					name="container_type"
					type="radio"
					label="Container Type"
					description="Select the container type"
					default="1">
					<option
						value="0">SWACHIP User Welcome</option>
					<option
						value="1">Custom HTML</option>
				</field>
				
					
				<field name="backgroundimage" type="media"
					label="MOD_CUSTOM_FIELD_BACKGROUNDIMAGE_LABEL" description="MOD_BACKGROUNDIMAGE_FIELD_LOGO_DESC" />
				
			</fieldset>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s