Attention

This document was written for an old version of Plone, Plone 2.5.x, and was last updated 1205 days ago.

To learn how to upgrade to the current version of Plone, read the upgrade manual.

The "3 As"

by John DeStefano last modified Feb 04, 2009 03:00 AM
Contributors: Stephanie McFarlin
Editing the text size style sheet switcher (Plone 2.x)

This applies only to Plone v2 sites; Plone 3 incorporates text size into its accessibility features.

The 3 A s for fonts
  • Images: textsize_small.gif, textsize_normal.gif, textsize_large.gif, and textsize_huge.gif
    • Located: [site]/portal_skins/plone_images
  • Template: global_siteactions
    • Located: [site]/portal_skins/plone_templates
  • CSS: ploneTextSmall.css, ploneTextLarge.css, and ploneTextHuge.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 .dtml to make the file name plone_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.

Additional Information:

  • To disable the display of the 3 As:
    • Click on /[site]/portal_actions
  • Uncheck Visible for all the Actions with Category of site_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".


Contribute

Something wrong or out of date? Anybody can edit or create a new article in the knowledge base. Simply create an account on this site, log in, and click the Edit button to contribute.