Bläddra i källkod

Include Custom CSS and ID in reusable content blocks. See Issue #275, PR #293 (#319)

Russ Ferriday 4 år sedan
förälder
incheckning
de365946bc
1 ändrade filer med 4 tillägg och 1 borttagningar
  1. 4 1
      coderedcms/templates/coderedcms/blocks/reusable_content_block.html

+ 4 - 1
coderedcms/templates/coderedcms/blocks/reusable_content_block.html

@@ -1,2 +1,5 @@
 {% load wagtailcore_tags %}
-{% include_block self.content.content %}
+
+<div {% if self.settings.custom_id %}id="{{self.settings.custom_id}}"{% endif %} class="block-html {{ self.settings.custom_css_class }}">
+  {% include_block self.content %}
+</div>