You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/classic-ui/theming/diazo.md
+49Lines changed: 49 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -176,3 +176,52 @@ For instance, you may need to put together the main menu, the language change, a
176
176
Sometimes it is easier to override the corresponding template in Plone, build the new HTML structure there, and replace one thing in the {file}`rules.xml` file than trying to write complex Diazo rules or writing XSLT.
177
177
178
178
The size of the {file}`rules.xml` file and the number of rules it contains can negatively impact the performance of your site.
179
+
180
+
181
+
### Disabling Diazo for AJAX requests
182
+
183
+
You can disable AJAX requests for Diazo themes with the help of the `ajax_load` parameter.
184
+
This parameter is used in some places throughout Plone to indicate AJAX requests, which normally should not be transformced by Diazo.
185
+
Also, in Plone 6.2 the `ajax_load` parameter will [automatically be added to the request](https://github.com/plone/Products.CMFPlone/pull/4169) for all AJAX requests.
186
+
187
+
Firs you need a theme-parameter in your {file}`manifest.cfg` file.
188
+
189
+
```cfg
190
+
[theme:parameters]
191
+
ajax_load = python:request.get('ajax_load')
192
+
```
193
+
194
+
Then you can disable Diazo for AJAX requests in your {file}`rules.xml` file:
0 commit comments