-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[2010-05-04] Consistently use ShortcodeParser in Text/HTMLText value getters (breaking [sitetreelink_id] in SiteTree.Content) #1381
Comments
This issue hasn't been touched for about 2 years but I'd like to elevate this as a bug impacting 3.1. At the very least, HTMLText should override any method that doesn't respect shortcodes with an appropriate replacement. With the recent work on updating the blog module we should look at improving framework's support for these methods. |
Will try to address in #5653 |
Context: At the moment the shortcodes are parsed only on What is certain is that the shortcodes need to be parsed before any content-type encoding or other manipulation of the value is done. I think adding the parser to the For now, it looks like @tractorcow's suggestion of overriding each of the functions ( |
Fixes silverstripe#2929 Fixes silverstripe#1381 Fixes silverstripe#5547 Fixes silverstripe#1751
Fixes silverstripe#2929 Fixes silverstripe#1381 Fixes silverstripe#5547 Fixes silverstripe#1751
Cleanup DBField subclasses Fixes silverstripe#2929 Fixes silverstripe#1381 Fixes silverstripe#5547 Fixes silverstripe#1751
Cleanup DBField subclasses Fixes silverstripe#2929 Fixes silverstripe#1381 Fixes silverstripe#5547 Fixes silverstripe#1751
Cleanup DBField subclasses Fixes silverstripe#2929 Fixes silverstripe#1381 Fixes silverstripe#5547 Fixes silverstripe#1751
Cleanup DBField subclasses Fixes silverstripe#2929 Fixes silverstripe#1381 Fixes silverstripe#5547 Fixes silverstripe#1751
Fixed with #5653 :D |
created by: @chillu (ischommer)
created at: 2010-05-04
original ticket: http://open.silverstripe.org/ticket/5535
At the moment the ShortcodeParser just applies in HTMLText/HTMLVarchar->forTemplate(). This getter is not used when further processing the output or using an alternative, e.g. through FirstParagraph().
SHortcodes should be respected in all those getters, specifically:
Also, its unclear why its limited to HTML fields only - text fields should be able to have shortcodes as well, right? Best example being the bbcode style enforced on BlogEntry.Content.
The text was updated successfully, but these errors were encountered: