Inserting post-list directive into template based shortcode #3540
Unanswered
JakubRakus
asked this question in
Q&A
Replies: 2 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
1 reply
-
There is no reason why nested shortcodes would not work except "never
thought of it"
…On Fri, Apr 9, 2021 at 6:07 AM Jakub Rakus ***@***.***> wrote:
It's not good news :( So I assume I have to make some ugly workaround, and
paste my shortcode into rst file as a two part raw html and post-list
directive between these two parts...
If there are any 'better' solutions I'll submit feature request for nested
shortcodes.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3540 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAMKYDKED62F75KU4T7P3TH27VDANCNFSM42SROTCQ>
.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have the following situation:
I've created a template based shortcode, say
my_short.tmpl
in/shortcodes
. This works fine, I can use it in rst files using{{% my_short %}}
.I've also created customized
post_list_directive.tmpl
in/themes/custom/assets/templates
. This also works fine when I usein my rst files.
I'd like to insert my customized post-list into my shortcode template, preferably with ability to pass stop parameter to post-list from parameters of the shortcode, say
{{% my_short stop=3 %}}
.Is this possible? I've searched through docs but didn't find any suggestions how to invoke a directive like post-list from shortcode tmpl file.
Beta Was this translation helpful? Give feedback.
All reactions