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   344 Views

Avatar
jocken

3 August 2012 at 2:46am Community Member, 3 Posts

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

4 March 2014 at 5:44am Community Member, 3 Posts

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