Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
$292 per month—let's make that $500!Learn more
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.
|Version||Release date||Contributors||Remarks / highlights|
|0.1.0 alpha||Mar 02, 2011||Jeroen Kenters||Initial release.|
- 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 (
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; 4.1. Language: en (or whatever language code your site uses) 4.2. Text: CMS 4.3. 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.