This document contains information for an outdated version (2.4) and may not be maintained any more.

If some of your projects still use this version, consider upgrading as soon as possible.

BBcode support

A bbcode tags help box shows when the "BBCode help" link is clicked. Javascript is required for this to work. It has been encorporated as a modified version of PEAR's HTML_BBCodeParser BBCode is used by default in the blog and forum modules.

Usage

To add bbcode parsing to a template, instead of $Content use:

$Content.Parse(BBCodeParser)

BBCode can be enabled in comments by adding the following to _config.php

PageComment::enableBBCode();

Supported Tags

  • [b]Bold[/b]
  • [i]Italics[/i]
  • [u]Underlined[/u]
  • [s]Struck-out[/s]
  • [color=blue]blue text[/color]
  • [align=right]right aligned[/align]
  • [code]Code block[/code]
  • [email]you@yoursite.com[/email]
  • [email=you@yoursite.com]Email[/email]
  • [ulist][*]unordered item 1[/ulist]
  • [img]http://www.website.com/image.jpg[/img]
  • [url]http://www.website.com/[/url]
  • [url=Website[/url">http://www.website.com/]Website[/url]

Comments

Comment policy: Please use comments for tips and corrections about the described functionality.
Comments are moderated, we reserve the right to remove comments that are inappropriate or are no longer relevant. Use the Silverstripe Forum to ask questions.

blog comments powered by Disqus