Hello could someone help me fix a little piece of helper.php code which is linked to a Joomla module .xml file.
Basically I have a module for displaying articles with different corner styles. There are 4 style options which can be set for each module via the backend administrator -squared, rounded, roundedfixed, disabled. The 4 options are currently selected by using radio buttons set to - 'enable' or 'disable'.
Instead of using radio buttons, I really want to use a drop-down list box displaying the style options.
I began with this xml code to display the radio buttons -
<param name="firstrounded" type="radio" label="FIRSTROUNDED" description="">
<option value="0">DISABLED</option>
<option value="1">ENABLED</option>
</param>
<param name="firstsquaredcorners" type="radio" label="FIRSTSQUAREDCORNERS" description="">
<option value="0">DISABLED</option>
<option value="1">ENABLED</option>
</param>
<param name="firstroundedfixed" type="radio" label="FIRSTROUNDEDFIXED" description="">
<option value="0">DISABLED</option>
<option value="1">ENABLED</option>
</param>
And this php code from my helper.php file -
$this->corners[0]['rounded'] = $params->get('firstrounded', 1);
$this->corners[0]['squared'] = $params->get('firstsquaredcorners', 1);
$this->corners[0]['fixed'] = $params->get('firstroundedfixed', 1);
I then changed the xml code to display a drop down listbox instead of the radio buttons...
<param name="firstcorners" type="list" label="FIRSTCORNERS" description="">
<option value="squared">squared</option>
<option value="rounded">rounded</option>
<option value="roundedfixed">roundedfixed</option>
<option value="cornersdisabled">cornersdisabled</option>
</param>
..I am unsure how to alter the php code to match the new .xml drop-down list box code. I need 4 options, sqaured, rounded, rounded fixed and cornersdisabled.
Can anyone help me out?