TextformatterGlossary by mr-fan

Allows to use tags in textareas to autolink to specific glossary links/replacements.


Allows to use tags in textareas to autolink to specific glossary links Texformatter for ProcessWire


You have to use a pagestructure for the glossary items

  • holder Page for entries template "glossary"
  • glossary items template "glossary_item"

The type of a glossary item could be a abbreviation, a external or internal link. Everything you need could added to the textformatter like more complex stuff, footnotes or other replacements.


There are working solutions like the great module from Ryan Cramer Autolink in the Profields https://processwire.com/api/modules/profields/autolinks/

But here Users don't could setup easy the terms to replace - this is only ment for webmasters or admins.

There are a module for abbreviations from sunlix https://processwire.com/talk/topic/7467-module-processabbreviate/

But here i only have options for abbreviations and i couln't easy add stuff or replacments i need.

How it works?

You can use this textformatter on any textinputfield or wysiwyg. The terms are catched by pipes ||term||. If no term/tag is found the pipes will cleaned out. If a term/tag is found it will replaced with the term/tag from the glossary.


This sytem is higly flexible in organisation the terms, rights to change/add new tags, since every term is a real page. The basic typ of a term/tag could be everything - on my basic setup i use this for abbrevitations and external links that are often used. But there could be much more types of reusable snippets of html triggered by a specific term/tag.


No known problems so far - but this is not really tested in a bigger scale....so use it like it is without warranty from me. Caching should work but is not tested. Replacements work great even with PageTableExtended the strings/terms get replaced while the preview rendering is generated. Maybe there is a performance problem on bigger glossarys - i'm not a professional PHP Coder. So here is place for improvements.

Best regards mr-fan

Install and use modules at your own risk. Always have a site and database backup before installing new modules.

Twitter updates

  • Stumbling upon a really nice ProcessWire-powered website, plus core updates including API improvements for ProcessWire forms— More
    9 September 2022
  • Useful new dot-and-bracket syntax options added for page.get() method— More
    2 September 2022
  • This week, in addition to the regular core updates, we have new versions of ProcessWire ProFields Table and ProFields Combo that add support for their own file and image types— More
    19 August 2022

Latest news

  • ProcessWire Weekly #437
    In the 437th issue of ProcessWire Weekly we're going to check out the latest core updates, forum highlights and online resources, and more. Read on!
    Weekly.pw / 24 September 2022
  • Multi-language field translation export/import
    In this post we cover the details of a new module that enables export and import capabilities for multi-language fields in ProcessWire.
    Blog / 5 August 2022
  • Subscribe to weekly ProcessWire news

“Yesterday I sent the client a short documentation for their ProcessWire-powered website. Today all features already used with no questions. #cmsdoneright—Marc Hinse, Web designer/developer