I managed to get https://www.drupal.org/project/paragraphs_jquery_ui_accordion working in Backdrop last week but I really want Bootstrap Accordions. I've found the Field Collection template file in the Drupal code. How do you do this with Paragraphs?
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
<?php foreach($rows as $key => $row) { ?>
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="heading-<?php print $key . '-' . $row['entity_id']; ?>">
<h4 class="panel-title">
<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse-<?php print $key . '-' . $row['entity_id']; ?>" aria-expanded="true" aria-controls="collapse-<?php print $key . '-' . $row['entity_id']; ?>">
<?php print $row['field_fc_title']; ?>
</a>
</h4>
</div>
<div id="collapse-<?php print $key . '-' . $row['entity_id']; ?>" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading-<?php print $key . '-' . $row['entity_id']; ?>">
<div class="panel-body">
<?php print $row['field_fc_panel_body']['value']; ?>
</div>
</div>
</div>
<?php } ?>
</div>
Recent comments
Glad it works for you! Regarding selecting options, I've just tested the Views Autocomplete Filters module and got it working after I had a look at the README and made sure to use the same...
Can't filter content in a View
You are right, that was it... Now my problem is I would like users being able to select from pre-established options, like a drop down or maybe an autocomplete. For that I would the Autocomplete...
Can't filter content in a View
Here goes the screenshot for the exposed filter config I will try the module you are telling me about. thanks again!
Can't filter content in a View
See also my screenshot of a view with Entity Reference relationship (right column) and a filter which uses the relationship:
Can't filter content in a View
Hi geoma, I think your views filter doesn't work because technically it's not searching for the name of the comuna / county but for a number (i.e. the node id of the referenced content item)....
Can't filter content in a View