What are “expandos”?
Expandos are useful for auxillary content — content that’s helpful but not immediately necessary for people to see. Common uses for expandos: FAQ pages, driving directions to events.
Using expandos on 350.org
- Enter all the content for the expando.
- Select all of the expando content and while it is selected, choose ‘expando’ from the “styles” dropdown
- You have an expando! It won’t open and close while you’re on the editing screen, but it will on the live page.
Common Problems
- Editing an expando can occasionally cause problems, especially if you’re adding new paragraphs or blocks of content. If you’re having problems, try removing the ‘expando’ style, making your edits, then re-adding it.
- To determine the label on the expando, the script first looks for a title attribute in the “expando” element (example:
<div title="My Expando Label">
). If that isn’t found, it uses the first heading (h3, h4, h5, etc.) found inside the expando. If it doesn’t find one there it uses the first 60 characters from inside the expando, and if nothing else works, it uses the text “Click to expand”.