The "3 As"
This applies only to Plone v2 sites; Plone 3 incorporates text size into its accessibility features.
- Images:
textsize_small.gif,textsize_normal.gif,textsize_large.gif, andtextsize_huge.gif- Located:
[site]/portal_skins/plone_images
- Located:
- Template:
global_siteactions- Located:
[site]/portal_skins/plone_templates
- Located:
- CSS:
ploneTextSmall.css,ploneTextLarge.css, andploneTextHuge.css- Note
- All of the CSS for each A is in its respective file
- Located:
[site]/portal_skins/plone_styles
- ECMA:
setActiveStyleSheet(title, reset)- Located:
[site]/portal_skins/plone_ecmascript/plone_javascript.js
- Note:
- It may be the case that this file cannot be edited through the ZMI and must be altered directly on the file system. This is because the content_type is "application/x-javascript" for JavaScript objects. In Zope, you cannot edit this type of content directly in the browser.
A possible workaround would be to rename the file by appending a different extension (as in adding a.dtmlto make the file nameplone_javascript.js.dtml) so that you can make changes via the ZMI. However, it would be a good idea to revert to the proper name after making your changes, as we're not sure what leaving this object with a different file extension this might break.
- Located:
Additional Information:
- To disable the display of the 3 As:
- Click on
/[site]/portal_actions
- Click on
- Uncheck
Visiblefor all theActionswithCategoryofsite_actions - Click Save at the bottom of the form.
Notes for Plone v3:
The AAA switch itself is no longer included in the default Plone v3
skin. Controls for changing text size are made available in
the site Accessibility control panel:[site]/accessibility-info]
The JavaScript function for text size in Plone v3 is called:
setBaseFontSize();
Its acceptable arguments are:
(['largeText'|''|'smallText'],1)
... where '' denotes "normal size".
explanation
- The "AAA" switch itself is no longer included in the default Plone v3 skin, so changing the look and feel of the switch is no longer relevant; and:
- In Plone v3, the controls for text size are made available in the site Accessibility control panel ([site]/accessibility-info]; and:
- I don't know anything more about the topic of controlling text size and accessibility features as they relate to Plone v3, and I'm hopeful that anyone who does and can elaborate will do so.
Aside from that, all else I have to offer builds on your observation of the JavaSscript function: the function in v3 is called:
setBaseFontSize();
... and the acceptable arguments are:
(['largeText'|''|'smallText'],1)
... where '' equals "normal size".
Is that helpful?
Where in Plone 3?
The only difference I noticed was the javascript function name which changed
from: setActiveStyleSheet('Small Text',1);
to: setBaseFontSize('smallText',1);
Is that really the only thing? Cause for some reason replacing that in my old website didn´t work out. It was working OK on 2.5, that´s why I don´t think I´ve got a messy CSS. Unless sth else changed.