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/views.md
+4-9Lines changed: 4 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -413,12 +413,7 @@ And then in the template call:
413
413
The Python constructor method of the view, `__init__()`, is special.
414
414
You should almost never try to put your code there. Instead, use the `_call__()` method or further helper methods called from it.
415
415
416
-
```{todo}
417
-
Fix target for link "acquisition chain".
418
-
Perhaps https://docs.plone.org/appendices/glossary.html#term-Acquisition or https://zope.readthedocs.io/en/latest/zopebook/Acquisition.html.
419
-
```
420
-
421
-
The `__init__()` method of the view might not have an {doc}`acquisition chain </develop/plone/serving/traversing>` available, meaning that it does not know the parent or hierarchy where the view is.
416
+
The `__init__()` method of the view might not have an {ref}`acquisition chain <backend-traversing-label>` available, meaning that it does not know the parent or hierarchy where the view is.
422
417
This also means that you don't have user information and permissions for the view.
423
418
424
419
This information is set after the constructor has been run.
@@ -493,7 +488,7 @@ To customize existing Plone core or add-on views you have different options.
493
488
494
489
### Overriding view template
495
490
496
-
The recommended approach to customize `.pt` files for Plone is to use a little helper called [z3c.jbot](https://pypi.python.org/pypi/z3c.jbot).
491
+
The recommended approach to customize `.pt` files for Plone is to use a little helper called [z3c.jbot](https://pypi.python.org/project/z3c.jbot).
497
492
498
493
If you need to override templates in core Plone or in an existing add-on, you can do the following:
499
494
@@ -566,7 +561,7 @@ If you need to override templates in core Plone or in an existing add-on, you ca
566
561
After the file is in place, changes to the file are instantly picked up.
567
562
The template code is re-read on every HTTP request.
568
563
569
-
If you want to override an already overridden template, read [How can I override an already overriden template by jbot?](https://stackoverflow.com/q/16209392/2214933)
564
+
If you want to override an already overridden template, read [How can I override an already overriden template by jbot?](https://stackoverflow.com/questions/16209392/2214933)
One workaround to avoid this mess is to use `aq_inner` when accessing `self.obj` values, as described in [Dealing with view implicit acquisition problems in Plone](https://stackoverflow.com/a/11755348/2214933).
1073
+
One workaround to avoid this mess is to use `aq_inner` when accessing `self.obj` values, as described in [Dealing with view implicit acquisition problems in Plone](https://stackoverflow.com/questions/11755348/2214933).
0 commit comments