Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically import widgets? #16

Closed
lebouquetin opened this issue Jun 27, 2024 · 1 comment
Closed

Automatically import widgets? #16

lebouquetin opened this issue Jun 27, 2024 · 1 comment

Comments

@lebouquetin
Copy link
Member

lebouquetin commented Jun 27, 2024

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:

  • automatically inclusion of widgets in order to make them all available in all contents.
  • maybe adda CLI command which list available widgets (and the associated file path)

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
Copy link
Contributor

Merged in #33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants