create a set of fields that are list type.
view the fields in admin you will see 2, one functions one doesn't.
standard list form field
as in 3.6.x
2 fields for each list field, one functional one none.
Also field row is NOT repeated.
<field name="fontsChooser"
type="Repeatable"
icon="list"
label="TPL_SERENITY_FONTS_CHOOSER_LABEL"
description="TPL_SERENITY_FONTS_CHOOSER_DESCRIPTION"
select="TPL_SERENITY_FONTS_CHOOSER_SELECT"
default="{'Elements':['body','h1','h2','h3','h4','h5','h6','p','a','i','ol','ul','li','span.company-name','span.company-slogan'],'Function':['Body','h1','h2','h3','h4','h5','h6','Paragraph','links','i','Ordered lists','Unordered Lists','List Element','Company Name','Company Moniker'],'Font':['','','','','','','','','','','','','','',''],'Size':['','','','','','','','','','','','','','',''],'Weight':['','','','','','','','','','','','','','',''],'Style':['','','','','','','','','','','','','','',''],'Color':['','','','','','','','','','','','','','',''],'backgroundColor':['','','','','','','','','','','','','','',''],'backgroundhoverColor':['','','','','','','','','','','','','','',''],'linkColor':['','','','','','','','','','','','','','',''],'hoverlinkColor':['','','','','','','','','','','','','','','']}"
>
<fieldset hidden="true" name="fontsChooser_modal" repeat="true">
<field name="Elements"
label="TPL_SERENITY_FONTS_ELEMENTS_LABEL"
description="TPL_SERENITY_FONTS_ELEMENTS_DESC"
class="medium-input"
filter="html"
type="text"
default=''
/>
<field name="Weight"
label="TPL_SERENITY_FONTS_WEIGHT_LABEL"
description="TPL_SERENITY_FONTS_WEIGHT_DESC"
type="list"
default=''
>
<option value=''>- Select -</option>
<option value="normal">Normal</option>
<option value="bold">Bold</option>
<option value="bolder">Bolder</option>
<option value="lighter">Lighter</option>
<option value="100">100</option>
<option value="200">200</option>
<option value="300">300</option>
<option value="500">500</option>
<option value="600">600</option>
<option value="800">800</option>
<option value="900">900</option>
<option value="initial">Initial</option>
<option value="inherit">Inherit</option>
</field>
<field name="Style"
label="TPL_SERENITY_FONTS_STYLE_LABEL"
description="TPL_SERENITY_FONTS_STYLE_DESC"
class="small-input"
type="list"
default=''
>
<option value=''>- Select -</option>
<option value="normal">Normal</option>
<option value="italic">Italic</option>
<option value="oblique">Oblique</option>
<option value="initial">Initial</option>
<option value="inherit">Inherit</option>
</field>
</fieldset>
</field>
I realize repeatable is deprecated but it should still function properly at this point, per George
Labels |
Added:
?
|
Imho it is deprecated since we never got it to work properly. It has been replaced with subforms instead.
list worked fine. Honestly, I didn't/don't have any issues with it in 3.6.5
Deprecated doesn't mean it shouldn't function like it did before.
We know that the modals inside the view never worked. But list views used to and should continue to as this is supposed to be covered by our b/c pledge
Of course, if it worked before it should continue to work.
Category | ⇒ | com_fields |
@franz-wohlkoenig This report isn't about custom fields. The report is a bit misleading.
It's about the "repeatable" formfield, which can be specified in a form.xml (not as custom field).
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-04-01 17:15:27 |
Closed_By | ⇒ | zero-24 |
Closing as there is a PR thanks for the update.
@wilsonge here's the issue you asked me to file.