LAPS Posted March 14, 2020 Share Posted March 14, 2020 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 More sharing options...
LAPS Posted March 15, 2020 Author Share Posted March 15, 2020 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, '') 2 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now