What is ModDef?
ModDef is a component for managing definitions of terms used on your site. These definitions will show up as tooltips.
- definitions management
- use the same definition in multiple languages
Being developed since Mar 02, 2011 by Jeroen Kenters.
||Remarks / highlights
||Mar 02, 2011
- MODX Revolution
Development & Bug reporting
ModDef is currently being developed on Github. That is also the place to report bugs, file feature requests and improvements. You may also fetch the latest commits from the Develop branch.
- Install through Package Management
- if jQuery is already in your template; remove it from the moddefHeader chunk
- add the moddefHeader chunk to your template (in the head section)
- customize the CSS if you want
Since this is a early beta, a lot of things might go wrong after installing this package. Just disable the plugin if you run into any problems and you should be fine. Don't forget to report bugs on our github page!
After installation, go to Components -> ModDef. Here you can add/update/remove definitions. Simply enter language code (en, nl, etc.), text to replace and the definition. After your save the definition it will be replaced in all paragraphs (<p> tags) on your site.
Let's say you want to explain to your visitors that CMS means Content Management system.
- Go to the manager
- Choose ModDef from the Components menu
- Click on the 'New definition' button
- Fill in the fields;
- Language: en (or whatever language code your site uses)
- Text: CMS
- Definition: Content Management System
- Click on save
From now on the word CMS will be a tooltip on all paragraphs on your site, explaining that CMS means Content Management System.
All of the following features will come up in later versions:
- only replace text once per page
- snippet to show definition