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
- Full Plone page views are a subclass of [`Products.Five.browser.BrowserView`](https://github.com/zopefoundation/Zope/blob/d1814d0a6bddb615629b552de10e9aa5ad30a6da/src/Products/Five/browser/__init__.py#L20) which is a wrapper class.
723
715
It wraps [`zope.publisher.browser.BrowserView`](https://github.com/zopefoundation/zope.publisher/blob/dea3d4757390d04f6a5b53e696f08d0cab5f6023/src/zope/publisher/browser.py#L958), and adds an acquisition (parent traversal) support for it.
724
-
- Views have an attribute `index`, which points to a [TAL page template](https://5.docs.plone.org/adapt-and-extend/theming/templates_css/template_basics) that is responsible for rendering the HTML code.
716
+
- Views have an attribute `index`, which points to a {doc}`TAL page template</classic-ui/templates>` that is responsible for rendering the HTML code.
725
717
You get the HTML output with `self.index()`.
726
718
The page template gets a context argument `view`, pointing to the view class instance.
727
719
The `index` value is usually an instance of [`Products.Five.browser.pagetemplate.ViewPageTemplateFile`](https://github.com/zopefoundation/Zope/blob/d1814d0a6bddb615629b552de10e9aa5ad30a6da/src/Products/Five/browser/pagetemplatefile.py#L35) for full Plone pages or [`zope.pagetemplate.pagetemplatefile.PageTemplateFile`](https://github.com/zopefoundation/zope.pagetemplate/blob/14ba59c98e12517b9f8abcdb24bc882bb435ed7c/src/zope/pagetemplate/pagetemplatefile.py#L43) for HTML snippets without using acquisition.
728
-
- View classes should implement the [interface](https://5.docs.plone.org/develop/addons/components/interfaces)
720
+
- View classes should implement the {doc}`interface</backend/interfaces>`
Views that render page snippets and parts can be direct subclasses of `zope.publisher.browser.BrowserView`, as snippets might not need acquisition support which adds some overhead to the rendering process.
@@ -839,7 +831,7 @@ Make sure that you declare the `i18n:domain` again, or the strings in this templ
839
831
840
832
## Access a view instance in code
841
833
842
-
You need to get access to the view in your code if you call a view from either:
834
+
You need to get access to the view in your code if you call a view from either:
843
835
844
836
- inside another view
845
837
- your unit test code
@@ -1126,4 +1118,4 @@ One workaround to avoid this mess is to use `aq_inner` when accessing `self.obj`
0 commit comments