• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Get control of your email attachments. Connect all your Gmail accounts and in less than 2 minutes, Dokkio will automatically organize your file attachments. You can also connect Dokkio to Drive, Dropbox, and Slack. Sign up for free.

View
 

WOAS How Tos

Page history last edited by Dave Raftery 10 years, 2 months ago

http://cplus.about.com/od/thebusinessofsoftware/ss/woas_3.htm

 

 


 

Transferring content between WOAS versions

Legolas has fixed it in the development version, and it sounds like the fix will be officially out soon. Here are instructions for waiting for the fix to come out smile, moving the content manually, using the development version, and a mention of editing the source:

 

Wait for the fix to come out

Once the fix is out and you've downloaded the wiki, use this method to import your old wiki contents into the new wiki once the fix is out  (note that this will not import Special pages):

 

1) Click the Advanced icon in the banner.

2) Click the Special::Import link in the Maintenance section of the page.

3) Click the Browse... button to browse to the old wiki.

4) Uncheck the import also CSS (available only for versions v0.9 and above) box.

5) Click the Import button.

 

If you had changed the global CSS settings in the old wiki, then I recommend moving those settings over to the new wiki manually, checking for conflicts for each one. The new wiki has a few additional CSS entries that are required.

 

Move the content manually

1) Open the old and new wiki in a browser.

2) Create each page manually in the new wiki, pasting the contents of the page from the old wiki to the new wiki.

 

Use the development version

Be aware that this is not necessarily stable because it's not an official release, so use your own judgement as to whether you'd rather wait for the official release or not:

 

1) Click the Download GNU tarball link at the bottom of this page.

2) Extract the contents of the file into a directory on your computer.

3) Follow the instructions on this page to assemble the parts of the wiki into a single file named woas-merged.htm.

 

You can now use woas-merged.htm (renaming it if you like) as a wiki.

 

To import your old wiki contents (note that this will not import Special pages):

 

1) Click the Advanced icon in the banner.

2) Click the Special::Import link in the Maintenance section of the page.

3) Click the Browse... button to browse to the old wiki.

4) Uncheck the import also CSS (available only for versions v0.9 and above) box.

5) Click the Import button.

 

If you had changed the global CSS settings in the old wiki, then I recommend moving those settings over to the new wiki manually, checking for conflicts for each one. The new wiki has a few additional CSS entries that are required.

 

Edit the source of both wikis

Caution! This is not recommended! This can destroy your wiki if you do it wrong! I'm sharing it simply because I believe in sharing information, and to encourage others who might want to become developers to take a look at the source code and see what makes this thing tick. smile

 

Moving your content can also be done by editing the source of both wikis using the content in these sections of the wiki:

 

1) var page_titles = [

2) var page_attrs =

3) var page_mts =

4) var pages = [

 

But this would have to be done very slowly, carefully, and painstakingly since var page_mts = doesn't even exist in the old wiki, and since each entry in each of those sections pertains to the entries in each of the other sections, so each page would have to be handled individually, and any mistake can render the wiki useless.


Dynamic listing of pages

Here are two methods you might be able to use, but not exactly what you're after because neither one will behave if put in a table:

 

Method one

Rename all pages that have entry_ as a prefix so that they're in the entry_ namespace. For example:

 

entry_page one becomes entry_::page one

entry_page two becomes entry_::page two

entry_page three becomes entry_::page three

 

Then put this on the Main Page:

 

[[Include::entry_::]]

 

The result will be:

 

Pages in entry_:: namespace

 

    * entry_::page one

    * entry_::page two

    * entry_::page three

 

It won't be in a table, but it will dynamically update whenever pages are added or deleted from the entry_ namespace.

 

Method two

Open the pages with the entry_ prefix in the editor and click the Tags button. Then type entry_ into the box. Or edit the page and type [[Tag::entry_]] at the bottom. Once all pages with the prefix are tagged, add this link to the Main Page:

 

[[Include::Tagged::entry_]]

 

The result will be:

 

Pages tagged with entry_

 

    * entry_::page one

    * entry_::page two

    * entry_::page three

 

It won't be in a table, but it will dynamically update whenever pages are tagged with entry_  or have their entry_ tag removed.

Comments (0)

You don't have permission to comment on this page.