algoo / jfmengine

A soft fork of JSSG for algoo websites use case
Other
0 stars 0 forks source link

Automatically import widgets? #16

Closed lebouquetin closed 3 months ago

lebouquetin commented 3 months ago

In the galae website integration, the content body is in charge of including the widgets:

--- BODY (last / third) ---
{% from "widgets/page_block_h2_with_ul_content_and_image_left.html" import page_block_h2_with_ul_content_and_image_left %}
[...]

Expected:

Something like:

$ ./manage.py list-widgets

page_block_h2_with_ul_content_and_image_right(): ./common-content/templates/jinja2/widgets/page_block_h2_with_ul_content_and_image_right.html
page_block_h2_with_ul_content_and_image_left(): ./common-content/templates/jinja2/widgets/page_block_h2_with_ul_content_and_image_left.html
page_section_main_cta(): ./common-content/templates/jinja2/widgets/page_section_main_cta.html
ClmntBcqt commented 3 months ago

Merged in #33