Welcome, guest ( Login )

WikiHome » JotForums » DevForum » DevQuestion41 » ForumTopicReply281

ForumTopicReply281

Version 6, changed by jotspot_scott. 04/27/2005.   Show version history

Back to Topic...

Reply to Topic: Online and Offline Editing

We've got content which could be orignally created as either Word docs or HTML and we're trying to determine the best format for incorporating it into Jot. As either would work, it comes down to how editing the wiki will occur. If all editing is in the wiki online, this is not a concern. We'd simply import or cut/paste the content into the wiki and edit the wiki using its intended design.

BUT I have users, that are frequently offline (traveling, etc.), who need to edit the site.

I thought we might be able to:

  • create our content as Word docs (keeping them small or breaking them up)
  • attach each doc to it's own wiki page
  • use the Show Tag to display to word doc on the wiki page

In theory the the user could edit offline by:

  • clicking on the attached file link
  • saving it locally
  • editing offline
  • reattach file when online again

But this causes problems for the regular online users as they can no longer edit the wiki page with the default Edit Page button.

Again in theory the online users could edit the page online by:

  • clicking on the attached file link
  • clicking open
  • editing online
  • clicking the Back button
  • saving it back to the wiki

But it doesn't save back to the wiki - you're prompted to save it locally only


Any thoughts on how to do this? Is there a simpler way?



Reply:

First off the basic idea of using the show tag to show an attached Word document is very cool. Thanks! (See note below for how this actually works...)

RE: your online users not being able to edit the page because the page's content was actually coming from the attached Word doc, yes that's the case. But your workaround, where users:

  1. download the Word doc,
  2. edit it locally,
  3. upload it again

works great! (Note that you can't do what you mention: click open, edit, and then hit "save" to have it saved back to the wiki...)

ps. In the future we will provide more convenient ways to work with attached documents...


Using Microsoft Word to Edit Pages (See also KbArticle98)

Thanks to this post, there are now two ways to do this:

  1. Use the More Actions menu and selecting "Import Word Document". This replaces the content of the page with the contents of the Word doc.
  2. Attach the Word doc to the page, author your page, and then where you want the content inserted from the Word doc, use the <show> tag.

Example

Here's how to import the content of the existing ShowTagTest.doc.

<wiki:show path="ShowTagTest.doc" form="/System/Forms/DefaultForm" />

Note: I set form="/System/Forms/DefaultForm" here because I don't want the showed page to use
this forum's reply form, but instead the standard "DefaultForm".  If I was in a normal page
without a form attached, I would omit the form attribute.

This Content Here From the Word Attachment Below!


Note that all I did was include this document using the <wiki:show/> tag.


  • Better than “Importing” the word document because I can still add content above and below this page

  • Makes it easy to update the page by simply attaching new revisions of this word doc

  • Since there’s no “export page as Word” feature yet, makes it easy to use Word as a page’s source, but still “get the content back out” as Word.


Handles Tables:


Test Column 1

Column 2

Column 3

One

Two

three


Even handles images! (not quiet yet – we’ll fix that bug)


Author: jotspot_scott

Attachment (1)

  File By Size Attached Ver.
 ShowTagTest.doc (View as HTML) jotspot_scott 25K 04/27/2005 6 Delete attachment