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

Templates for Wagtail #6217

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

smithellis
Copy link
Contributor

  • product_card_preview - the template for a product card
  • product_wagtail - a single product template
  • products_wagtail - a multiple products template

- product_card_preview - the template for a product card
- product_wagtail - a single product template
- products_wagtail - a multiple products template
Copy link
Collaborator

@akatsoulas akatsoulas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My comment here is that I would prefer to create a template like product_base.html which will be used from both product.html and wagtail_product.html. This way we can avoid a lot of repetition and hopefully have tighter control over the changes without missing anything. I provided both templates to ChatGPT and it came up with a nice base template. We should follow this pattern where applicable. r+wc

@akatsoulas
Copy link
Collaborator

Let's hold off merging this until the release is out tomorrow

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

Successfully merging this pull request may close these issues.

2 participants