#99 — Formats other than plain-text allowed where they should not be
by
Kevin Teague
—
last modified
Jul 09, 2009 03:39 PM
| State | Resolved |
|---|---|
| Version: | 1.5 |
| Area | Functionality |
| Issue type | Bug |
| Severity | Medium |
| Submitted by | Kevin Teague |
| Submitted on | Jan 01, 2008 |
| Responsible | Steve McMahon |
| Target release: | 1.5 |
If you go to the Plone Control Panel -> Markup and enable Alternative Formats then these formats are provided in a number of fields where they should not be. These fields are:
Help Center : Description
Help Center : Copyright
FAQ : Detailed Question
FAQ : Answer
How To : Summary
How To Folder : Description
Tutorial Folder : Description
Tutorial Page : Description
Reference Manual Folder : Description
Reference Manual : Reference Manual Description
Error Reference Folder : Description
Error Reference : Description
Link Folder : Description
Link : Description
Glossary Folder : Description
Glossary : Definition
(whew!)
I've not tested it, but I assume that supplying an "allowable_content_types = ('text/plain',)" for fields which can only be plain-text should fix this. The ExtensibleMetadata schema in Archetypes used by the core content-types supplies this argument for the Description field, but PHC supplies it's own Description fields so they don't pick-up this setting.
As Wichert points out, any of the fields that are used as a Description must be in plain-text:
http://www.nabble.com/Re:--website--Let's-do-content!-p14557693.html
We are using quite a bit of ReST formatted text in the PHC install for the Grok web site, so I am willing to commit a fix w/ tests to SVN if this change is accepted but folks are too busy to implement it.
Help Center : Description
Help Center : Copyright
FAQ : Detailed Question
FAQ : Answer
How To : Summary
How To Folder : Description
Tutorial Folder : Description
Tutorial Page : Description
Reference Manual Folder : Description
Reference Manual : Reference Manual Description
Error Reference Folder : Description
Error Reference : Description
Link Folder : Description
Link : Description
Glossary Folder : Description
Glossary : Definition
(whew!)
I've not tested it, but I assume that supplying an "allowable_content_types = ('text/plain',)" for fields which can only be plain-text should fix this. The ExtensibleMetadata schema in Archetypes used by the core content-types supplies this argument for the Description field, but PHC supplies it's own Description fields so they don't pick-up this setting.
As Wichert points out, any of the fields that are used as a Description must be in plain-text:
http://www.nabble.com/Re:--website--Let's-do-content!-p14557693.html
We are using quite a bit of ReST formatted text in the PHC install for the Grok web site, so I am willing to commit a fix w/ tests to SVN if this change is accepted but folks are too busy to implement it.
- Steps to reproduce:
- Enable alternative formats in the Markup control panel.
Added by
Steve McMahon
on
Jan 01, 2008 02:28 AM
Kevin,
Issue state:
unconfirmed
→
open
Target release:
None
→
1.5
Responsible manager:
(UNASSIGNED)
→
smcmahon
This makes complete sense. Thanks for catching it, and for explaining the problem so well.
If you've time to apply the fixes, please do! If not, just reply to the issue and I'll make sure it gets done.
Thanks, Steve
Added by
Kevin Teague
on
Jan 26, 2008 08:37 AM
I've committed a fix which corrects this issue for all PHC content types.http://dev.plone.org/[…]/PloneHelpCenter
Added by
Steve McMahon
on
Jan 26, 2008 06:13 PM
Looks perfect! Thanks!
Issue state:
open
→
resolved
No responses can be added.
If you can, please log in before submitting a reaction.
