Jump to content

renderField for fieldset fields does not render anything


LAPS
 Share

Recommended Posts

Can you confirm that the function renderField for fieldset fields, even having the file /site/templates/fields/fieldName.php or /site/templates/fields/fieldName/$file.php (using $file argument), does not render anything as expected?

$page->renderField('fieldsetName')
// returns nothing

... or am I wrong on something?

Link to comment
Share on other sites

To make the renderField function to work for fieldset fields you must specify a $value to render that is not null.

For example, using the /site/templates/fields/fieldName/$file.php (using $file argument):

$page->renderField('fieldsetName', $file, $value)
$page->renderField('fieldsetName', $file, '')

 

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...