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
In addition to what @findlabnet has said, you possibly want to be looking at metatags as you can then tell search engines which page is the canonical source for a given page. In this scenario,...
xmlsitemap module generates wrong links for languages
Not only twice — the number of languages not excluded from the sitemap can be greater than that. This feature is designed according to the corresponding recommendations. So, I can't...
xmlsitemap module generates wrong links for languages
How do you prevent the home page for every language to be added to the sitemap twice with easy xml sitemap?
xmlsitemap module generates wrong links for languages
Just FYI, for field API date fields that use ISO format (basically a string), the resulting expression produced by the date_views_filter_handler_simple handler is DATE_FORMAT(STR_TO_DATE(...
Filter view on date
I think storing as timestamps would be the simplest and best way. Thanks for the help!!
Filter view on date