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:

image

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

Popular posts from this blog

Warning, the Safe Path is not accessible vm3 - Joomla! Forum - community, help and support

2.5.28 to 3.4.1---Download of update package failed - Joomla! Forum - community, help and support

Your host needs to use PHP 5.3.10 or higher to run this vers - Joomla! Forum - community, help and support