Create a custom fields - text field to be used as the repeatable field.
Create a custom fields - subform field and select your repeatable field as the field to use. Set "Render value" to 'yes'
create an accordion article ( see attached file ) leaving one or more of the repeatable fields empty.
repeat putting something in the repeatable field.
When something from the repeatable fields exists the subform will show the subform.
When there are no repeatable fields it will hide that subform entry.
Entry still displays but with no content.
systeminfo-2022-06-04T23_22_15+00_00.txt
The accordion is straight css/html. No JS or other behavior altering code.
Salesview.txt
https://pilkey.abiviahost.ca/classics/1947-chevrolet-3100-pickup#accordion4 ( this is the safety row )
Template: j51_nina - https://joomla51.com/joomla-4-templates/j51-nina-j4
Labels |
Added:
No Code Attached Yet
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-06-05 07:02:16 |
Closed_By | ⇒ | N6REJ |
I see your point.
Best you can do simply would be to remove the margin bottom and then at least it wont show th small white area. Best would be to write conditional code
thanks, I'll look into how to do that, js is not my strong point.
it would be php not js
put an if not null statement before the slide
you can't put php ( afaik ) into the template file as tiny wipes it out when you load the template
ah - did not know it was a content template
Look at your static html. Of course it does what you say. There is zero code to conditionaly check if an accordion should be shown or not.
Your code is doing exactly what you have told it to do. Please use the forum for support.