Skip to content

Commit 6758441

Browse files
authored
Update viewlets.md
Fix some broken urls.
1 parent 0c7687a commit 6758441

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/classic-ui/viewlets.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ Convert example to using plonecli
216216
Here is an example code which extends an existing Plone base viewlet (found from plone.app.layout.viewlets.base package)
217217
and then puts this viewlet to a one of viewlet managers using {doc}`ZCML </develop/addons/components/zcml>`.
218218

219-
Example Python code for viewlets.py:
219+
Example Python code for `viewlets.py`:
220220

221221
```python
222222
"""
@@ -676,7 +676,7 @@ class ISomethingHeader(IViewletManager):
676676
"""
677677
```
678678

679-
We need to create this common.py file so we can tell Plone to render our custom templates for these
679+
We need to create this `common.py` file so we can tell Plone to render our custom templates for these
680680
viewlets. Without this piece in place, our viewlets will render with Plone defaults.
681681

682682
theme/browser/common.py code:
@@ -703,13 +703,13 @@ Viewlets can be registered to one special page only
703703
using a marker interface. This allow loading
704704
a page specific CSS files.
705705

706-
- [How to get a different look for some pages of a plone-site](http://www.starzel.de/blog/how-to-get-a-different-look-for-some-pages-of-a-plone-site)
706+
- [How to get a different look for some pages of a plone-site](https://www.starzel.de/blog/how-to-get-a-different-look-for-some-pages-of-a-plone-site)
707707

708708
### \<head> viewlets
709709

710710
You can register custom JavaScript or CSS files to HTML \<head> section using viewlets.
711711

712-
Below is an head.pt which will be injected in \<head>. This examples shows how to dynamically generate
712+
Below is an `head.pt` which will be injected in \<head>. This examples shows how to dynamically generate
713713
`<script>` elements.
714714

715715
```html
@@ -730,7 +730,7 @@ Then you register it against viewlet manager `plone.app.layout.viewlets.interfac
730730
/>
731731
```
732732
733-
viewlet.py code:
733+
`viewlet.py` code:
734734
735735
```python
736736
class FacebookConnectJavascriptViewlet(LikeButtonOnConnectFacebookBaseViewlet):
@@ -788,7 +788,7 @@ A viewlet manager can be rendered in a page template code using the following ex
788788
```
789789
790790
```{note}
791-
If you get a `ContentProviderLookupError: viewletmanagerid` you are trying to render a Plone page frame in a context which has no acquisition chain properly set up. Check [exceptions documentation](https://docs.plone.org/manage/troubleshooting/exceptions.html#contentproviderlookuperror-plone-htmlhead) for more details.
791+
If you get a `ContentProviderLookupError: viewletmanagerid` you are trying to render a Plone page frame in a context which has no acquisition chain properly set up. Check [exceptions documentation](https://4.docs.plone.org/manage/troubleshooting/exceptions.html#contentproviderlookuperror-plone-htmlhead) for more details.
792792
```
793793
794794
Each viewlet manager allows you to shuffle viewlets inside a viewlet manager.
@@ -810,7 +810,7 @@ and [plone.app.viewletmanager.manager.OrderedViewletManager](https://github.com/
810810
More info
811811
812812
- <https://github.com/zopefoundation/zope.viewlet/blob/3.7.2/src/zope/viewlet/viewlet.py>
813-
- <http://docs.plone.org/old-reference-manuals/plone_3_theming/elements/viewletmanager/anatomy.html>
813+
- <[http://docs.plone.org/old-reference-manuals/plone_3_theming/elements/viewletmanager/anatomy.html](https://4.docs.plone.org/old-reference-manuals/plone_3_theming/elements/viewlet/anatomy.html)>
814814
815815
816816
### Custom viewlet manager

0 commit comments

Comments
 (0)