Joomla plugin

Meet Pufferfish.

Puffs up when you poke it.

Accordions, tabs and tooltips from a few plain tags in your article. Write the panels, pick a look, done. It searches, remembers, deep-links, plays nicely with Wayfin and can pull its panels straight from other articles. The live one below is a real Pufferfish. Go on, poke it.

Joomla 5 & 6 · PHP 8.2+ · No jQuery, no Bootstrap JavaScript, any template

A content plugin. Type {accordion} and {panel} tags in an article and Pufferfish turns them into an accessible accordion. No module to place, no markup to write.

Why it exists

Long pages hide their answers.

A long FAQ or a spec sheet is a wall of text. Folding it up helps, but most accordion add-ons want a module slot, a shortcode dialect of their own or a framework's JavaScript.

Pufferfish is one plugin and a handful of tags. It brings its own small script, finds headings for Wayfin, opens the right panel when someone follows a link and keeps working when JavaScript doesn't.

Live, on this page

The tide pool.

Every accordion and tab set on this page is the real plugin, running from tags in this article. The tags in the dark boxes are real too. They stayed as text because Pufferfish leaves anything inside a code block alone.

Three tags

Write it, get an accordion

That's the whole trick. A block, a few panels, a look after the bar. The options after the colon are optional: here the panels stay open together, and each one has a copy-link button.

Try it

  1. Open two panels at once.
  2. Press the # on a header, then paste the link into a new tab.
  3. Press Tab, then Enter or Space.
{accordion tag-demo:multi,copylink|cards}
{panel What goes in a panel?|open}
Anything you can put in an article.
{panel How do I link to it?}
Press the # button on its header.
{/accordion}

Anything you can put in an article: paragraphs, lists, images, even another accordion.

Eight looks

Same tags, different coat

Each tab below holds a Pufferfish accordion in one look. The tab set is Pufferfish too, so yes, that's nesting. Set a look after the bar, or change the site's default once.

{tabs looks|pills}
{tab Boxed}
{accordion look-boxed|boxed}
{panel Boxed|open}…
{/accordion}
{tab Chaos}
{accordion look-chaos|chaos}
…

Boxed

The default. A bordered card with a tinted header when open.

From articles

Let your articles be the panels

Point one tag at a category and Pufferfish builds the panels from the articles in it: their titles, their text, a Read more link. It follows the same visibility rules as the rest of the site, so a visitor never sees an article they couldn't open. These come from our sample articles.

{accordion samples:from=cat:sample-articles,
  limit=4,order=title,fields=intro+link|boxed}

{panel|from=12}
{panel Our returns|from=returns-policy}

Keeps its place

Remember, link and search

Add remember and the panels a visitor opened come back next time, stored only in their own browser. Add hash and the address follows what they open. Closed panels can be found with the browser's own search.

{accordion keeps:remember,hash|simple}
{panel Remembered|id=remembered}…

Try it

  1. Open a panel in the accordion above, then reload. In the next one, it stays open.
  2. Press Ctrl+F and search for sandcastle. The panel below opens by itself (Chrome, Edge and Firefox).
  3. Add #remembered to this page's address. That panel opens and scrolls into view.

What's in the box

Everything worth puffing up for.

Tags

Write it, don't build it

Accordions and tabs from {accordion}, {tabs} and {panel}. Three levels of nesting.

Editor button

Build it from a pop-up

Pick the look and options, add and reorder sections, then Insert. It shows your site's defaults as it goes.

Tabs

Tabs that turn into other things

Top or side strips. On a phone they become an accordion, a swipe row, a drop-down or a plain stack. You choose.

Effects

Slide, fade or snap

Visitors whose device asks for less motion always get the instant version.

Remember

Picks up where they left off

Open panels and chosen tabs come back next visit. Stored only in the visitor's own browser, and they expire.

Deep links

A link per panel

Any link ending in a panel id opens it, and every panel around it, then scrolls there. A copy-link button on each header is optional.

Search

Closed doesn't mean lost

Find-in-page opens panels that hold the words, and arrivals from Smart Search land on the right one.

Wayfin

Menu friendly

Panel titles can appear in a Wayfin menu, grouped or not, and a click opens the panel before scrolling to it.

From articles

Panels from other articles

Name an article, a list or a whole category and Pufferfish builds the panels from them, with the same visibility rules as everywhere else on the site.

Accessibility

Real buttons, real keys

Proper roles and states, Tab through every tab, arrow keys too, visible focus, reduced-motion respect.

No script?

Still readable

Without JavaScript every panel shows. Printing opens them all too, unless you say otherwise.

Theming

Variables, not fights

Colors, spacing, corners and speed are CSS custom properties. Per block you can set an accent, density and corner style from the tag.

The companion

The tackle box button.

The package includes a Pufferfish button for your editor. Click it and a pop-up opens where you pick the look, add your sections, set the options and press Insert. It shows your site's defaults, so you only touch what's different for this block, and the tag builds itself as you go.

Changed your mind later? Select the tag, click the button again, and the pop-up opens with your choices filled in. Want to show a tag on a page instead of running it, the way this page does? Put it in a code block, or start it with a backslash.

Training

One sheet, for whoever writes the tags.

TODO: one line on what the sheet covers, once the cheat sheet is written.

For people who write articles

Cheat Sheet

TODO: short description of the sheet.

Download Pufferfish cheat sheet (PDF)

T1. Behavior flags

T1a. Multi, controls, numbered, copylink, slide

Bravo text, open to begin with.

Check this: numbers 1 to 3; Open all and Close all work; the # button copies a link ending #t1a-alpha; Charlie has a "New" badge; panels slide.

T1b. Single (one at a time), fade

One text.

Check this: opening a panel closes the others; the new panel fades in and the old one goes at once, with no blip.

T1c. Remember and hash

Check this: open Red and Blue, reload, and they come back. The address bar follows what you open (#t1c-...). Open this page in a new tab with #t1c-green on the end: Green opens and scrolls in.

T1d. Look options

Plus icon, roomy padding, pill corners, panel titles are h4.

Check this: purple accent, plus icon, pill corners; the second panel is orange; inspect a title and confirm it's an h4.

T1e. Snap and search off

No animation at all.

Check this: panels change instantly. In Chrome, Ctrl+F for pomegranate does not open the second panel.

T1f. Search on

Open to begin with.

Check this: Ctrl+F for quokka in Chrome, Edge or Firefox opens panel two. Safari and iPhone browsers will not; that's expected. To test the Smart Search arrival, open this page with ?highlight=WyJxdW9ra2EiXQ== on the end.

T2. Tabs

T2a. Top strip, centered, phone: accordion

First

First pane.

Check this: Tab steps through every tab button (not just the selected one); arrow keys move and select. Narrow the window under 768px: it becomes an accordion. A link ending #t2a-second selects that tab.

T2b. Side strip, manual, phone: menu

Overview

Overview pane.

Check this: tabs sit on the left; arrow keys only move focus, Enter or Space picks. Under 768px the strip is a drop-down labeled "Pick a section".

T2c. End strip, fill, phone: scroll, bp=992

Alpha

Alpha pane.

Check this: strip on the right; under 992px (not 768) it turns into a row you swipe sideways.

T2d. Phone: stack, remember, fade

Red

Red pane.

Check this: pick Green and reload; Green is still picked. Under 768px both panes show under their titles with no tabs.

T3. Wayfin

These three blocks are the ones that should show in the Wayfin menu. T1 and T2 blocks are set to wayfin=off, so they stay out.

Check this: two items in the Wayfin menu. Clicking one opens the panel, then scrolls to it.

Check this: a separator named "Group test" with the two titles under it. Wayfin lists a nested group after the rest of its parent group, so look at the very bottom of the menu.

Tab item one

Pane one.

Check this: one Wayfin item per tab. Clicking the second selects that tab and scrolls to the set. (Tracking is rough here by design.)

T4. Panels from articles

Sample Articles category (ID 13, alias sample-articles): public IDs 8, 9 and 11 to 17, and ID 10 which needs a Registered login.

T4a. The whole category

Check this: logged out you see 9 panels. Logged in as a Registered user you see 10. As a Super User you may see the same 10 (or 9 if the article is unpublished). Each panel title is the article's title, and its id is the article's alias.

T4b. Order by title, 4 only

Check this: four panels, in A to Z order, each with the intro text and a Read more link only.

T4c. A list by ID, as tabs

Otter Parliament

Everyone knows otters hold paws while they sleep, but few realize they allegedly hold parliamentary sessions at dawn. According to highly unreliable marshland rumors, senior otters wear kelp neckties and debate whether river rocks should be sorted by shininess. These…

Otter Parliament

Check this: three tabs titled with the articles' names, each with a short excerpt, the article's image if it has one and a link.

T4d. Single panels

Check this: panel 1 uses article 8's title and text; panel 2 shows "My own title" with only the intro; panel 3 has the full text and a link; panel 4 shows article 12 followed by the line above.

T4e. Access test

This panel is mine and is always here.

Check this: Logged out: no panel for article 10 and none for 99999 (a deliberate bad reference). "Public article" (ID 8, intro only) and "After the blocked ones" show. Logged in as Registered: article 10 appears. Logged in as an editor or Super User: a note appears in place of each missing one, saying why.

T5. Odds and ends

T5a. Nesting (three levels)

Bottom of the pile.

Check this: three nested blocks, each in its own look; every level opens and closes on its own.

T5b. Printing a tag as text

A backslash prints the tag instead of running it: {accordion} and {panel Title}.

{accordion demo}
{panel Inside a code block}
Left alone, too.
{/accordion}

Check this: the tags print as text and nothing is built from them.

T5c. Mistakes show editors a note

The block has two bad options.

Check this: logged in as an editor, a note names icon=wiggly as a bad value and pos as a tabs-only option. Logged out, the accordion just works, with no notes.

T5d. Printing and no script

Print preview this page: every accordion panel should be open. Then switch off JavaScript in the browser and reload: every panel should show, and the tabs should read as stacked sections.

Check this: both views show all the text.

Checklist

  1. T1a: Open all, Close all, numbers and the copy-link button work.
  2. T1b: fade has no blip when switching panels.
  3. T1c: remember and hash work, and a link ending in a panel id opens it.
  4. T1d to T1f: look options apply, and search on and off behave.
  5. T2a to T2d: Tab steps through each tab, and all four phone modes work at the right widths.
  6. T3: the Wayfin menu shows the right items, and clicking opens the panel.
  7. T4a: 9 panels logged out, 10 as Registered.
  8. T4b to T4d: order, limit and fields do what each Check line says.
  9. T4e: blocked and missing articles leave nothing for visitors and a note for editors.
  10. T5a to T5d: nesting, escapes, editor notes, print and no-script.
  11. Try it logged out, as Registered, and as a Super User. Try one phone.

For the technical crowd

Under the hood.

Works with
Joomla 5 and 6, PHP 8.2+. The installer checks both first.
Dependencies
None. No jQuery and no Bootstrap JavaScript; the engine is its own small script. It uses Bootstrap's CSS variables when your template has them, and has fallbacks when it doesn't.
Weight
TODO: gzipped CSS and JS sizes from the final build.
Package
One install with two plugins: the content plugin that does the work and an editor button that builds the tags.
Tags
Parsed on the server, nested up to three levels. Tags inside pre and code are left alone, and a backslash prints one as text.
Panels from articles
Same visibility rules as Chaos Filet: published, inside the publish window, category published, and the visitor's view levels on both article and category. Blocked or missing articles leave nothing for visitors and a note for editors.
Search
Closed panels are marked hidden="until-found" where the browser supports it. Smart Search and feeds get plain headings and text, and articles pulled into panels are left out of the index.
Wayfin
Panels open on a Wayfin click through wayfin:jump. Opening and closing fires a toggle event Wayfin listens for.
Events
Hook into the open and close events for analytics. The README lists them.
Privacy
Remembered panels live in the visitor's own browser and expire. Nothing goes to a server.
Theming
CSS custom properties, all prefixed --pf-.
Updates
TODO: through Joomla's own updater, once the update server entry is published.

Ready to puff up?

Want Pufferfish on your site? Take it, or let's talk.

Download Pufferfish This email address is being protected from spambots. You need JavaScript enabled to view it. See it puff
unknown
Version 1.0.0
Filedate 2026-11-17
Size 58.66 KB
Downloads 0
pdf
Version 1.0.0
Filedate 2026-11-17
Size 1.57 MB
Downloads 14

Pufferfish

Changelog.

0.7.2

Test build · December 2026
  • Closed tab panes no longer take a tab stop, so the Tab key never lands on something you can't see.

Earlier releases

0.7.1Line look fix
  • Fixed the Line look: the copy-link button no longer sits next to the number.
0.7.0Panels from articles
  • Panels from articles: one panel from one article, or a whole accordion or tab set from a list of articles or a category. Same visibility rules as Chaos Filet.
  • New Articles tab in settings, and an Articles section in the editor button.
  • Pulled articles are left out of Smart Search and feeds.
0.6.0Wayfin and Tab
  • Wayfin: a click on a panel in the menu opens it, then settles the scroll. Per block: wayfin=on|group|off|tabs.
  • Opening or closing a panel tells Wayfin, so its reading time follows.
  • Tabs: the Tab key now steps through every tab button.
0.5.1Link fix
  • Fix: a link to a panel's header, or to anything inside a closed panel, now opens that panel.
0.5.0Search
  • Find in page opens closed panels and inactive tabs in Chrome, Edge and Firefox.
  • Arriving from a Smart Search result opens the panel or tab that holds the words.
  • A new Search tab in settings, and search=off per block.
0.4.1Fade fix
  • Fix: fade only fades the panel that is opening, so switching panels no longer blips.
0.4.0Behavior
  • Effects: slide, fade or snap.
  • Remember, #panel-id deep links and hash.
  • Open all and Close all, copy-link buttons, numbered sections and badges.
  • Every on/off option takes name, noname or name=on|off.
0.3.0Editor button
  • Build an accordion or tabs from a pop-up, with a sortable section list, looks and options.
  • The package installs the button plugin too.
0.2.0Tabs
  • Tabs with four phone modes, plus the Cards, Pills, Chaos, Dark and Bare looks.
  • Documented CSS variables.
0.1.0First build
  • Tag parser with nesting to three levels, accordions in the Boxed, Simple and Line looks, a built-in script, settings, editor notes, print and no-script views.