# SW Pillar Accordion — AI Agent Reference **Module name:** SW Pillar Accordion **Use this document when:** The user asks about the SW Pillar Accordion HubSpot module—what it does, how to configure it, or how to change a specific element (colors, images, buttons, borders, visibility, etc.). --- ## Instructions for the AI Agent - **Unless the user explicitly provides you with direct HubSpot CLI access, assume you have no access to HubSpot.** You cannot see the backend, Design Manager, or theme files unless given that access. Answer **only** from this document (and any other docs the user has provided). - **Configuration:** When the user asks how to change something, tell them exactly **where to go** in the module (tab names, group names, field labels) and what to select or enter. Use the **exact** names given in the "Configuration Reference" below. - **Not configurable via the module:** If the request cannot be done with module fields, say so clearly. Then direct the user to **custom CSS** in their theme’s custom CSS file. For **Sprocket Rocket–based themes**, that file is usually **`custom-styles.css`** in the theme. Tell them to add their overrides there. Use the "Appendix: CSS Classes and Selectors" to give exact selectors when possible. - **Support and bugs:** For module-specific support requests or bug reports, direct the user to **https://smithworks.marketing/contact**. --- ## Support and Bug Reports For **support requests** or **bug reports** about the SW Pillar Accordion (or other Smithworks modules): - **Contact:** [smithworks.marketing/contact](https://smithworks.marketing/contact) --- ## Versions, roll-down, and alias risk (master before 2026.03.30.12.18) If the **Master version number** in the module’s `module.html` / `module.css` / `module.js` header is **before `2026.03.30.12.18`**, that copy may still define **legacy** module-level and per-panel CTA fields (**Add Button 1**, **Add Button 2**, disable-legacy toggles, etc.). **Current master** removed those fields entirely in favor of **`Buttons`** repeaters only: **`cta_button_items`** (section-level) and **`accordion_button_items`** (per panel). Rolling **this** master version onto an older theme crosses a **structural** boundary for saved page/module JSON. Before and after roll-down: 1. **Diff** the theme’s `fields.json` against master. 2. Read **`docs/alias-mapping-risks.json`** (key **`SW Pillar Accordion.module`**) and **`docs/SW-Module-Docs/SW Pillar Accordion/MAINTENANCE-NOTES.md`**. 3. **Spot-check** live pages that used legacy CTAs; **re-enter** buttons in the **Buttons** repeaters if content did not carry over. **Critical changelog note:** Legacy button support was **removed** at Finish Up **2026.03.30.12.18** — not merely hidden. Empty repeaters or invalid rows (no button text, or link left as `#`) **do not** render a visible button. --- ## HubSpot video and file uploads (plans and limits) This module offers **video** options that may use **HubSpot Video**, **Video from files** (File Manager), and/or **external embed** (YouTube, Vimeo, etc.), depending on the field. - **HubSpot Video** (the built-in videoplayer / Marketing video library): Typically requires **HubSpot subscription features** for hosted video. If the option is missing or blocked, confirm your **hub type and tier** in HubSpot's product and pricing documentation. - **Video from files**: Uploads use the **File Manager**. On **Content Hub Free** and similar tiers, HubSpot commonly applies a **per-file upload size limit (often 20 MB)** and account storage limits. **Compress** the file, reduce resolution, or use **External embed** if upload fails or the file exceeds the limit. - **External embed**: Paste a supported **URL** (for example YouTube or Vimeo). This path usually does not require HubSpot's hosted video product. HubSpot's limits and SKUs change over time—**verify current rules for your portal** in HubSpot's help center. ## 1. Purpose and When to Use The **SW Pillar Accordion** module provides: - **Section-level headings** (one or more) and an optional **intro/Content Area** (rich text) above the accordion. - A **two-column layout:** on the left, **accordion items** (clickable headers plus expandable panels); on the right, a **single image** that switches to match the **active** accordion item. - **Per-panel content:** each accordion item can have optional **Panel Headings**, **Panel Content** (rich text), a **Panel Image**, and optional **Buttons** (repeater — add as many CTAs as needed). - **Section-level CTAs:** optional **Buttons** repeater below the accordion (same field pattern as panel buttons). - **Styling:** module background (color or gradient), accordion **border color**, **image visibility** by breakpoint (hide on medium and/or small screens), and **module spacing**. Use it for **FAQs**, **feature overviews**, **step-by-step guides**, or any content that benefits from expandable panels plus a supporting image. ### Use Cases - **Capabilities:** Accordion panels; image that changes per active panel; headings, content, CTAs per panel. - **Use for:** FAQs; feature overviews; step-by-step guides; any expandable-panel content with a supporting image. - **When to choose SW Pillar Section instead:** When you need sections (image left/right) with headings, bullets, CTAs—not accordion panels. SW Pillar Section is section-based; SW Pillar Accordion is accordion-based. - **When to choose SW Magic Accordion instead:** When you need a simple accordion without an image. ### Related Modules | Module | Relationship | |--------|--------------| | **SW Pillar Section** | Image+content sections with headings, bullets, CTAs. Section-based, not accordion. | | **SW Magic Accordion** | Simple accordion without image. | | **SW Image & Text** | Simple image+text; no accordion. | --- ## 2. Module Structure (What You See on the Page) From top to bottom: 1. **Module-level headings** — From the **Headings** group. Renders above the Content Area. 2. **Content Area** — Rich text intro between the headings and the accordion. 3. **Main layout:** - **Left:** Accordion. Each item has: - A **vertical bar** on the left edge. Active and inactive colors are configurable in **Style** tab → **Divider Settings**. - A **clickable header** (Accordion Heading): native **`