Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Nesting Shortcodes?


Reply


2 Posts   375 Views

Avatar
jocken

Community Member, 3 Posts

3 August 2012 at 2:46am

How can I create nesting shortcodes?

this code:

[shortcode_1]

Test

[shortcode_2]

Text 2

[/shortcode_2]

[/shortcode_1]

will produce:

Test
[shortcode_2]

Text 2

[/shortcode_2]

and not:

Test
Text 2

as I want

Avatar
zlincoln

Community Member, 3 Posts

4 March 2014 at 5:44am

Sorry bub, had the same issue: http://doc.silverstripe.org/framework/en/reference/shortcodes#limitations