ModxTracs
ModxTracs 0.4
Poor Man's Modx revision control implemented with the Trac Wiki
Download
- repo-2119.txt - 8.49 kb (307 downloads)
Description
This plugin catches events related to changes in documents, chunks, snippets, plugins, modules, and templates. When it receives an event, it copies the changed object to the Trac Wiki as a new revision. All revisions of the object can then be viewed and diffed by browsing the Trac wiki.
Instructions
- Copy the contents of the attached text file into a new plugin in the Manager.
- In the Configuration Tab, copy and paste the following line into the Plugin Configuration input box.
&tracDb=Trac Database Name;string;tracdb &tracTable=Trac DB Wiki Page Table;string;wiki &userPrefix=Wiki User Name Prefix;string;modx_ &pagePrefix=Wiki Page Name Prefix;string;Modx
- In the resulting configuration parameters, you will need to modify at least the name of your trac database, as the default is unlikely to work.
This plugin currently uses the Modx database API to get to the Trac database as well, so you'll need to be using
a Modx database user that can also access your Trac database.
- On the System Events tab, check all of the OnBefore???FormSave, On???FormSave, OnBefore???FormDelete, On???FormDelete event variants for Doc, Chunk, Snip, Plugin, Mod, and Temp.
You can use this Trac Wiki text to display links to your stored revisions in a table format. Change the page name prefix if you did not use the default of "Modx" and replace "<<" and ">>" with square brackets (not sure how to escape them here):
== ModX HTML Element Revisions ==
|| Web Pages || Templates || Chunks ||
|| <<TitleIndex(ModxPage_)>> || <<TitleIndex(ModxTemplate_)>> || <<TitleIndex(ModxChunk_)>> ||
== ModX PHP Scripted Element Revisions ==
|| Snippets || Plugins || Modules ||
|| <<TitleIndex(ModxSnippet_)>> || <<TitleIndex(ModxPlugin_)>> || <<TitleIndex(ModxModule_)>> ||
Updates
db-escaped several of the content metadata fields that might have punctuation or other special characters in them. In particular, page titles.Released Versions
Releases that are grayed out are deprecated.
| Version | Released | Author | Downloads |
|---|---|---|---|
| Total Versions: 4 | Total Downloads: 974 | ||
| 0.4 | Jul 09, 2008 | Rick Terrell | 307 |
| 0.3 | Jun 23, 2008 | Rick Terrell | 231 |
| 0.2 | Jun 20, 2008 | Rick Terrell | 223 |
| 0.1 | Jun 17, 2008 | Rick Terrell | 213 |
Download Statistics
Package downloads per day since tracking began on June 27th, 2010. Weekends are colored. Plot below shows an overview.
Top Countries
This is a list of the countries most downloading this Extra.
| Country | Downloads |
|---|---|
| United States | 13 |
| Sweden | 1 |
| Ukraine | 1 |




