a generic

Thoughts and Goals

Some of the goals for this week's development:
  • Dynamic contexts-- change the look of your site!
  • Moving objects-- cut/copy/paste objects from one folder to anover
  • XML import/export-- move objects between sites or to other applications


    Dynamic Contexts

    This one is pretty easy-- just turn dbcontext back on, but make getContext go to disk for preprocess and postprocess. Change the context contexts to remove pre and post and make work for site admins only.


    Moving Objects

    This requires a session property called $session->clipboard that stores a string of objects like "image:37,document:9,objtype:id" to perform a move operation on.

    A generic context (m:pickup) will be created that writes the current object to $session->clipboard.

    Listall context will be modified to allow writing of multiple objects to the clipboard via a checkbox form.

    Folder context (m:putdown) will be written to change the folderids of the objects listed in $session->clipboard and move necessary files on disk.

    Inventory box will be added below folder list for editors-- this box lists the objects that you have picked up during your session, and provides links to put them back down in the current folder.

    XML import/export
    There will need to be site, folder, and generic xml contexts so that export can be by folder or whole site at once.

    Import, however, should only be by folder, and should be a browse box that will also accept a URL.

    An XML parser will be written into beryliumObject that can parse object properties, correct folder and sitemember ids, and insert (or update?) objects in the database (and filesystem as necessary). An id conversion table will be built at the same time, and the import parser will run another pass on all objects, updating any id bml tags.

    If no sitemembers are imported, sitememberid becomes the id of the importer.

    If a whole site is being imported, then sitemembers are imported first and a conversion table is used to correct known sitememberids. If unknown, sitememberid defaults to the importer's.

    That should keep me busy.
  • By Chris Snyder on July 8, 2002 at 10:22am

    jump to top