Great module. One thing that i think could improve it would be compatibility with the fences module: https://drupal.org/project/fences. Right now, there are 3 extra divs wrapping paragraph content and would like the ability to just display the fields within the bundle. Is this a possibility to respect settings of fences module to remove the extra field wrappers?

Comments

apmsooner’s picture

I just realized i can remove 2 of the divs by modifying paragraphs-item.tpl.php

<div class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
  <div class="content"<?php print $content_attributes; ?>>
    <?php
    print render($content);
    ?>
  </div>
</div>

Are these 2 divs really necessary by default implementation? Is there any way to remove the outer wrapper div just to clean up the html further?

jeroen.b’s picture

Status: Active » Closed (won't fix)

It's kinda like asking why fields.tpl.php have wrappers by default.
It's the default behavior because it's easier to theme for people that don't want to touch templates/preprocessors.

You can remove the div's by copying the template to your theme and modify it to your needs.

jive01’s picture

The problem with modifying the template is that it has global implications on a project, where as fences will take care of a specific, individual field. Fence support would be pretty strong.

jive01’s picture

Status: Closed (won't fix) » Needs review
bluegeek9’s picture

Status: Needs review » Closed (outdated)
//www.flaticon.com/free-icons/thank-you Thank you for your contribution!

Unfortunately, Drupal 7 is End of Life and no longer supported. We strongly encourage you to upgrade to a supported version of Drupal.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.