Skip to content

(Re)Introduce the ajax_load theme parameter and skip diazo theming, if set. - #404

Merged
thet merged 1 commit into
masterfrom
ajax_load
Jun 17, 2025
Merged

(Re)Introduce the ajax_load theme parameter and skip diazo theming, if set.#404
thet merged 1 commit into
masterfrom
ajax_load

Conversation

@thet

@thet thet commented Jun 3, 2025

Copy link
Copy Markdown
Member

@mister-roboto

Copy link
Copy Markdown

@thet thanks for creating this Pull Request and helping to improve Plone!

TL;DR: Finish pushing changes, pass all other checks, then paste a comment:

@jenkins-plone-org please run jobs

To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically.

Happy hacking!

@thet

thet commented Jun 3, 2025

Copy link
Copy Markdown
Member Author

@jenkins-plone-org please run jobs

@thet
thet requested review from petschki and yurj June 3, 2025 19:33

@petschki petschki left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. This should also be added to the docs, so that theme integrators can implement this in their custom rules.xml and parameters too.

@thet

thet commented Jun 11, 2025

Copy link
Copy Markdown
Member Author

@jenkins-plone-org please run jobs

@petschki

Copy link
Copy Markdown
Member

@thet can this be merged today or tomorrow? then I could do a release and @mauritsvanrees could include it in the upcoming Plone 6.1.2 release.

@thet

thet commented Jun 16, 2025

Copy link
Copy Markdown
Member Author

@petschki yes, it can be merged. I just wanted to keep it open until I have done the documentation.

@petschki

Copy link
Copy Markdown
Member

@thet so you merge it, when you're ready with the docs right? I do not have the complete overview what needs to be merged together with this PR ...

@thet

thet commented Jun 17, 2025

Copy link
Copy Markdown
Member Author

@petschki I've done the docs - improving them is another story and separate from this PR.

plone/documentation#1961

I'll merge.

@thet
thet merged commit 8c80134 into master Jun 17, 2025
@thet
thet deleted the ajax_load branch June 17, 2025 15:23
@davisagli

Copy link
Copy Markdown
Member

This doesn't seem safe to me. If I have Diazo rules which change the markup of part of a page, then I want to get the changed markup whether I'm loading the entire page or replacing part of it via an ajax request.

@mauritsvanrees

Copy link
Copy Markdown
Member

Wouldn't that always be in a custom theme? Then you will have your own variables, rules, and index.html.

Sure, this is something to watch out for if your theme is based on Barceloneta. But at least the fix is easy: in the theme variables set ajax_load = python:True (if I have the spelling correct).

@thet

thet commented Jun 23, 2025

Copy link
Copy Markdown
Member Author

@davisagli

Also, this same variable was present in Barceloneta in Plone 5 and fell out by accident (I think) in Plone 6:

Uhm the ajax_load Diazo switch wasn't present in plonetheme.barceloneta, though I was so sure about it I didn't even check before.
Also I was using it ever since in own themes.

Hm.

But I agree with @mauritsvanrees argument. A custom theme will most likely use own rule files, so I do not see a problem here too.

@davisagli

Copy link
Copy Markdown
Member

@thet @mauritsvanrees Right, it helps that this change is only for the Barceloneta theme and not custom themes.

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.

5 participants