From e101a2dc7a60f7d2d5251595e685699083d12381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 8 Mar 2016 20:56:24 +0100 Subject: [PATCH] Add reference to parent shortcode Fixes #1936 --- content/extras/shortcodes.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/extras/shortcodes.md b/content/extras/shortcodes.md index ef78b30c9..34c6f3486 100644 --- a/content/extras/shortcodes.md +++ b/content/extras/shortcodes.md @@ -273,6 +273,8 @@ such as `{{ if .IsNamedParams }}...{{ else }}...{{ end }}`. See the You can also use the variable `.Page` to access all the normal [Page Variables](/templates/variables/). +A shortcodes can be nested. In a nested shortcode you can access the parent shortcode context with `.Parent`. This can be very useful for inheritance of common shortcode parameters from the root. + ## Single Positional Example: youtube {{}}