Let people flip through it first
Nobody buys a book in a store without opening it. They read the contents, skim the first chapter, and decide whether the author writes the way they think. A product page with a cover and a price asks people to take that on faith, and a lot of them won’t.
The Library launched two weeks ago, and this was the first thing I wanted once my own field guides were in it. PortIgniter LMS 2026.11.29 adds samples: a free excerpt of any document that visitors can read right on its page, without an account. It also fixes a small thing that bothered me more than it should have: configuration files can now be sold under their real names. And the menu on phones finally behaves.
Peek inside

Each document can now have one sample. You make the excerpt yourself, however you like: the first chapter, the table of contents plus one good play, a few pages that show off the layout. Then you upload it on the document’s edit page, in its own Sample section, separate from the files buyers get.
Visitors who don’t own the document see it right under the Buy button:
- A PDF sample gets a Peek inside button. It opens in the same built-in reader buyers use, with page navigation and zoom, and a link to download it too.
- Any other type (a ZIP of lab files, a Markdown chapter, a config file) gets a Download a sample button.
- No account needed. The sample is public, so you can link to it straight from an email, a social post or a forum answer.

Once someone owns the document, the sample disappears from their view. They have the real thing now. Samples are never stamped with a name, don’t count toward the ten-file limit, and replacing one doesn’t email your owners. Draft documents keep their sample hidden like the rest of the page.

qpdf installed (it's in the LMS image too), one command pulls out the first twelve pages without bloating the file: qpdf --empty --pages guide.pdf 1-12 -- guide-sample.pdf
Config files under their real names
A lot of what I write about is configuration. The SSH Field Guide ships a hardened sshd
drop-in, a certificate authority snippet and a systemd unit for a tunnel that stays up. The
AuditD guide ships a .rules file. Until now, the Library only took a fixed list of types, so
those had to go out as 10-portigniter.conf.txt or be zipped up. That’s clumsy for the buyer,
and it looks careless.
Now you can list the extra extensions you need in .env:
lms.libraryExtraTypes = 'conf, service, rules'
Restart, and those files upload, list and download under their own names, labelled CONF, SERVICE and so on.

They’re handled as plain text, and that keeps them safe:
- The contents must really be text. A binary renamed to
.rulesis refused, just as a fake PDF is. - They always download. Buyers get a
text/plainfile, never something the browser tries to run or display as a page. - Web and code types are off limits. Extensions such as
php,html,svgorjsare ignored, with a warning in the log, so a typo in.envcan’t open a hole.
The same setting covers samples, so a single .conf can be the free taste too.
Also in this release: a tidier menu on phones
On a phone, opening the menu used to be messy. The links opened beside the buttons instead of below them, the site name got squashed down to a single letter, and the whole header grew to the height of the list, pushing the page down with it.
The menu now opens as a panel that drops down under the bar, right below the menu button, and sits over the page instead of shoving it aside. It’s easier to use with a thumb:
- One link per row on phones, with clear dividers and roomy tap targets. On tablets the links sit in two columns, so the panel stays short.
- The menu button turns into an X while the panel is open, so it’s obvious how to close it.
- Tap anywhere outside the header, or press Escape on a keyboard, and it closes.
- Long menus scroll inside the panel. Instructors and administrators have more links, and the header stays put at the top of the screen, so nothing ends up out of reach.

The bar on a desktop screen hasn’t changed. While I was in there, I also fixed the Sign in button, which broke onto two lines on narrow phones.
Getting it
Pull the new lms image (2026.11.29) and restart. The database upgrade runs
automatically when the container starts, and no new Stripe webhook events are needed.
lms.libraryExtraTypes is optional. Leave it out and the Library accepts the same types as
before. Values with spaces need quotes, as shown above. The
Library docs page covers samples and file types in more detail.
Let the work speak for itself
If you’ve written something good, the fastest way to sell it is to let people read some of it. Add a sample to each document in your Library, link to it from wherever you talk about your work, and let the pages do the convincing.
Get PortIgniter LMS for $100: full source, a year of updates, and yours to keep forever.