Skip to content

Commit a6427f4

Browse files
committed
Fix broken links, add placeholder traversing chapter,
1 parent 8f1502f commit a6427f4

File tree

5 files changed

+24
-10
lines changed

5 files changed

+24
-10
lines changed

docs/backend/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Insert introduction here.
1717

1818
```{toctree}
1919
:maxdepth: 2
20+
config-registry
2021
control-panels
2122
content-types
2223
behaviors
@@ -29,6 +30,7 @@ global-utils
2930
portal-actions
3031
users-groups
3132
security
33+
traversing
3234
workflows
3335
search
3436
indexing

docs/backend/traversing.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
myst:
3+
html_meta:
4+
"description": ""
5+
"property=og:description": ""
6+
"property=og:title": "Traversing"
7+
"keywords": ""
8+
---
9+
10+
(backend-traversing-label)=
11+
12+
# Traversing
13+
14+
```{todo}
15+
Document traversing here.
16+
```

docs/classic-ui/layers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ The changes to add-on layers are applied only when add-ons are installed or unin
169169
```
170170

171171
```{seealso}
172-
https://pypi.python.org/pypi/plone.browserlayer
172+
https://pypi.python.org/project/plone.browserlayer
173173
```
174174

175175

docs/classic-ui/views.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -413,12 +413,7 @@ And then in the template call:
413413
The Python constructor method of the view, `__init__()`, is special.
414414
You should almost never try to put your code there. Instead, use the `_call__()` method or further helper methods called from it.
415415

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.
422417
This also means that you don't have user information and permissions for the view.
423418

424419
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.
493488

494489
### Overriding view template
495490

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).
497492

498493
If you need to override templates in core Plone or in an existing add-on, you can do the following:
499494

@@ -566,7 +561,7 @@ If you need to override templates in core Plone or in an existing add-on, you ca
566561
After the file is in place, changes to the file are instantly picked up.
567562
The template code is re-read on every HTTP request.
568563

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)
570565

571566

572567
(classic-ui-overriding-a-view-class-label)=
@@ -1075,5 +1070,5 @@ self.obj = self.context.reference_catalog.lookupObject(value)
10751070
return self.obj.absolute_url() # Acquistion chain messed up, getPhysicalPath() fails
10761071
```
10771072
1078-
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).
10791074

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ sphinx-togglebutton
1616
sphinxcontrib.httpdomain # plone.restapi
1717
sphinxcontrib.httpexample # plone.restapi
1818
sphinxext-opengraph
19+
sphinx-design

0 commit comments

Comments
 (0)