Archive of UserLand's first discussion group, started October 5, 1998.
Re: Content tools and XML-RPC
Author: Steve Ivy Posted: 1/20/1999; 9:24:04 AM Topic: Frontier on MacOS X Server Msg #: 2310 (In response to 2309) Prev/Next: 2309 / 2311
I'd like to develop a template slot in Frontier and connect it to an XML-RPC call, and that would connect to a command in DreamWeaver's menu bar.What would that template slot do, and what would the Dreamweaver command do? Dreamweaver objects written in Javascript (I so want to do this now) can define 1) a menu item, 2) a form to be used to accept user parameters, 3) perform the Javascript logic on the parameters (plug in the xml-rpc client here), and 4) return the text to be inserted into the document.
OK, I'm seeing this now, as an example:
- "From Frontier Template" object w/ associated "insert" menu item
- The Javascript xml-rpc client requests a list of available templates from Frontier
- Object builds a popup list for the UI form
- User selects a template from the popup
- Object requests the template text from frontier, encoding it in Dreamweaver library code perhaps. Content blocks defined in the template are turned into editable html regions
So we've got the text into Dreamweaver. How does it send it back?
- template library items are ignored
- editable, defined content regions (title, metas, bodytext, etc.) are written to a text stream in Frontier "#directive" format.
- text stream is returned to Frontier, encoded in xml-rpc
- Frontier method builds a new page and inserts into the structure
This is only for a "new" page type command. The same idea could be used for editing pages, etc.
Of course, the ideal would be for application vendors to be doing this, building it into the apps themselves at the root level. But, we can do this *now* in Dreamweaver. Heck- we've got developers out there, we can do this with Photoshop plug-ins or whatever app's plugin architecture.
XML-RPC EVERYWHERE.
--Steve
p.s. - OK, I'd forgotten about the http part of this equation. I'm not sure what the solution is for this, as most of the apps we want to hook up to this mechanism are not http-aware. Thoughts?
There are responses to this message:
- Re: Content tools and XML-RPC, Dave Winer, 1/20/1999; 9:58:50 AM
- Re: Content tools and XML-RPC, Ian Beatty, 1/20/1999; 10:04:52 AM
- Re: Content tools and XML-RPC, Philip Suh, 1/20/1999; 11:58:23 AM
This page was archived on 6/13/2001; 4:47:26 PM.
© Copyright 1998-2001 UserLand Software, Inc.