I was thinking that it may be useful to create a plugin that replaced words in the content of the document with links to matching internal pages. This is related to the Blue Sky Vineyards website on which I work. Essentially, since we have a store, I would like any new pages created by editors that mention items in the store, to automatically link to the individual product pages. An example might help. Here was a news posting by one of the editors:
We recently participated in the San Francisco Chronicle Wine Competition. This is a National Competition where over 4,200 wines were entered from 1,500 different wineries. Our Villard Blanc and Traminette both won silver medals in this competition and our Chambourcin Reserve received a bronze medal. This is the first wine competition that we have entered into this year and we are pleased to have placed so well among so many other wines throughout the United States.
Visit Blue Sky Vineyard and enjoy the relaxing atmosphere and our award-winning wines.
See You Soon!
Since "Villard Blanc," "Traminette," and "Chambourcin Reserve" are all published pages, I would like a plugin to replace those words with links to the respective pages. A couple of questions would be what type of overhead would this create? Does something like this already exist? Does anyone have any tips before I proceed?
I imagine that I would get the pagetitle, alias, or menutitle (decided by parameter) of all the active children for the container(s) set in a parameter. I would then do string replaces in the output to change them into links.
What do you think?
UPDATE
This has been added to the repository here:
http://modxcms.com/Context-Links-1847.html
Support Thread:
http://modxcms.com/forums/index.php?topic=22271