silverstripe-framework/docs/en
Hamish Friedlander 2335c074b3 NEW Make shortcode parser more clever about placement
Shortcodes have traditionally had a problem that they are inside <p> tags,
but generate block level elements. This breaks HTML compliance.

This makes the shortcode parser now mutate the DOM based on the "class" attribute on
the shortcode to insert the generated block level element at the right place in the DOM

 - for "left" and "right" elements it puts them just before the block level
   element they are inside

 - for "leftAlone" and "center" elements it splits the DOM around the shortcode.

The trade off is that shortcodes are no longer "text level" features. They need
knowledge of the HTML they are in to perform this transformation, so they can
only be used in (valid) HTML
2013-02-18 10:49:52 +13:00
..
_images Added docs for composer 2012-11-03 18:00:58 +13:00
changelogs Merge remote-tracking branch 'origin/3.0' into 3.1 2013-01-30 12:46:24 +01:00
howto Merge remote-tracking branch 'origin/3.0' into 3.1 2013-01-08 17:16:09 +01:00
installation Document that yaml files shouldnt be served directly 2013-01-29 14:11:52 +13:00
misc Updated issue reporting guidelines 2013-01-22 12:05:07 +01:00
reference NEW Make shortcode parser more clever about placement 2013-02-18 10:49:52 +13:00
topics Change to how environment file is found 2013-01-30 15:19:53 +00:00
tutorials Update docs/en/tutorials/1-building-a-basic-site.md 2013-01-08 15:52:46 +00:00
index.md Corrected a number of inbound links pointing to the documentation. 2012-10-09 14:53:47 +13:00