I updated the "cwsoft-shortcode" module to SilverStripe 3.
The "cwsoft-shortcode" module builds up on the shortcode function introduced with SilverStripe 2.4. Shortcodes can best be thought of a kind of placeholders entered in the WYSIWYG editor, which gets replaced with PHP output just before beeing displayed on the screen. This allows to add dynamic content to a specific position inside a WYSIWYG page.
The following shortcodes are implemented:
- cwsHideMailto: obfuscates the mailto part of mailto links
- cwsRandomQuote: displays a random quote from a text file
- cwsRandomImage: displays a random image from your assets folder
Details, screenshots and download is provided via GitHub: