diff --git a/docs/how_to/18-extending_page_contents.rst b/docs/how_to/18-extending_page_contents.rst index 412c7830b02..86daa4ff3d3 100644 --- a/docs/how_to/18-extending_page_contents.rst +++ b/docs/how_to/18-extending_page_contents.rst @@ -271,12 +271,12 @@ PageContent extensions ++++++++++++++++++++++ In order to retrieve a page content extension within a template, get the ``PageContent`` -object using ``request.current_page.get_pagecontent_obj``. Using the example above, we +object using ``request.current_page.get_content_obj``. Using the example above, we could use: .. code-block:: - {{ request.current_page.get_pagecontent_obj.ratingextension.rating }} + {{ request.current_page.get_content_obj.ratingextension.rating }} With menus ~~~~~~~~~~