Making form fields in templateDetails repeating - Joomla! Forum - community, help and support
hi there,
okay, made template , options templatedetails.xml. it's working fine , all. here's got:
all options 1 object called top 1. let's i've got 20 objects (top 1, top 2, top 3 ... etc.), there way repeat them automaticly? if surround fields php this:
... right have copy/paste fields in templatedetails.xml, small change can time consuming way.
okay, made template , options templatedetails.xml. it's working fine , all. here's got:
all options 1 object called top 1. let's i've got 20 objects (top 1, top 2, top 3 ... etc.), there way repeat them automaticly? if surround fields php this:
code: select all
<?php
$top_count = 1;
while ($top_count <= 20) {
str_replace('top 1','top ' .$top_count,$fields);
str_replace('top1','top' .$top_count,$fields);
echo $fields;
$top_count++;
}
?>
... right have copy/paste fields in templatedetails.xml, small change can time consuming way.
you can create custom fields in php https://docs.joomla.org/creating_a_cust ... field_type
Comments
Post a Comment