Skip to content

Commit

Permalink
NGSTACK-673: improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pspanja committed Feb 13, 2024
1 parent d259d11 commit 62cc8a5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/reference/objects.rst
Original file line number Diff line number Diff line change
Expand Up @@ -539,9 +539,9 @@ Properties
+--------------------------+---------------------+-----------------------------------------------------------------------------+
| ``$innerModifierUser`` | ``User`` | Optional modifier user's Repository User object |
+--------------------------+---------------------+-----------------------------------------------------------------------------+
| ``$path`` | `Path`_ | Content's main Location absolute URL path |
| ``$path`` | `Path`_ | Content's Path object |
+--------------------------+---------------------+-----------------------------------------------------------------------------+
| ``$url`` | `Url`_ | Content's main Location absolute URL |
| ``$url`` | `Url`_ | Content's URL object |
+--------------------------+---------------------+-----------------------------------------------------------------------------+

``ContentInfo``
Expand Down Expand Up @@ -988,9 +988,9 @@ Properties
+-----------------------+----------------+------------------------------------------------------------------------------------+
| ``$content`` | `Content`_ | Content object (lazy loaded) |
+-----------------------+----------------+------------------------------------------------------------------------------------+
| ``$path`` | `Path`_ | Location's absolute URL path |
| ``$path`` | `Path`_ | Location's Path object |
+-----------------------+----------------+------------------------------------------------------------------------------------+
| ``$url`` | `Url`_ | Location's absolute URL |
| ``$url`` | `Url`_ | Location's URL object |
+-----------------------+----------------+------------------------------------------------------------------------------------+

.. _path_object:
Expand Down Expand Up @@ -1044,13 +1044,15 @@ Return absolute URL path.
+----------------------------------------+------------------------------------------------------------------------------------+
| **Example in Twig** | .. code-block:: twig |
| | |
| | {% set absolute_path = content.path %} |
| | {% set absolute_path = content.path.absolute %} |
| | {% set absolute_path = content.path.absolute({ |
| | siteaccess: 'admin', |
| | page: 1, |
| | _fragment: 'frag' |
| | }) %} |
| | |
| | {% set absolute_path = location.path %} |
| | {% set absolute_path = location.path.absolute %} |
| | {% set absolute_path = location.path.absolute({ |
| | siteaccess: 'admin', |
Expand Down

0 comments on commit 62cc8a5

Please sign in to comment.