[Hypercontent-users] Adding a custom editor
Brought to you by:
alexvigdor
From: John F. <ja...@co...> - 2005-12-12 16:21:36
|
How difficult would it be to add a custom editor to hypercontent? Here's what I have in mind. One of the cool things about HC is the navigation editor and I was wondering what it would take to extend that functionality to allow edition of a more complex xml file. I have a site that contains two or three pages that include some common content, in this case information about releases that are available for the project. Rather than edit each page which contains information about releases I thought it would be useful to have an editor which just edited the release information and then use an appropriate stylesheet to render the necessary content on each page. For example, let's say my xml looks something like this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE release-template SYSTEM "/config/dtd/releases.dtd"> <releases> <release version="2.5.1" stable="true"> <label>QuickStart</label> <type>GA</type> <date>2005-10-19</date> <download> http://www.yale.edu/its/tp/portal-dist/251/quickstart/uPortal_rel-2-5-1-quick-start.zip </download> <md5 /> <description> General Audience release of uPortal 2.5.1 </description> <notes> http://tp.its.yale.edu/~awp9/published/jasig/up2/rel-2-5-1/releaseNotes.txt </notes> </release> <release version="3.0.0" stable="false"> <label>uPortal-only</label> <type>M2</type> <date>2005-10-12</date> <download> http://mis105.mis.udel.edu/ja-sig/uportaldist/uPortal_rel-3-0-0-M2.zip </download> <md5> http://mis105.mis.udel.edu/ja-sig/uportaldist/uPortal_rel-3-0-0-M2.zip.md5 </md5> <description> Developers Release of uPortal 3 Milestone 2 </description> <notes>https://clearinghouse.ja-sig.org/wiki/x/eCw</notes> </release> </releases> If a custom "releases" editor could be created it might present a page somewhat like the navigation editor that would allow me to "add" a release. Then I would get a form which would let me fill out the attributes and nodes I described above. Has anyone done anything like this? |