[Date Prev][Date Next] [Chronological] [Thread] [Top]

Fwd: [Foswiki-discuss] Mass import advice from OpenLDAP project Faq-O-Matic to foswiki?



I found this from last year I misplaced.


---------- Forwarded message ----------
From: lars.eik@gmail.com <lars.eik@gmail.com>
Date: 3 May 2011 23:43
Subject: Re: [Foswiki-discuss] Mass import advice from OpenLDAP
project Faq-O-Matic to foswiki?
To: foswiki-discuss@lists.sourceforge.net


Hi Gavin,

I have only done some minor text hacking but here's some feedback anyways.

THIS will help you. If you make out the structure between file names
then you can script creation and set the relevant parameters, like
'topicparent' and get the breadcrumb right. That could be a start.

Another way could be by using JQuery and doing import from 'GUI' in
Foswiki. Prepare much the same structure as you would if using CLI and
use your browser to do the 'save' script. This would let you preview
etc (by INCLUDE url) and give som other options, like let other users
do some import and quality checking.

Your old pages have a structure where the meaningful info is in the
first two tables. Maybe even only the first if you don't really need
the Previous/Next bit. So the structure seem simple enough but I have
not examined all of the FAQ's.

Perhaps create a mapping table between the old '226.html' and new
'WhichVersionShouldIUse'. The new names can be created by removing the
spaces and ' signs in the title so it would be a valid wikiname.
You can override so it doesnt have to be tough. Another name scenario
is LdapFaqAUTOINC0 where the AUTOINC0 will get next available nr, like
LdapFaq38 etc..

table1, tbody

row1, skip first td,
row1, second td has a tags that are top, second, third, fourth level/category.
row1, last b tag is the current document "name" or caption. Could be
your page name (topic name)
other tablerows are data/info

..and that's about all I had time for :)

Jquery is really nice when doing stuff like html tags, children, find
the 'b' tag etc. About text files, you can copy them all into a new
'test web' and rename them to .txt but and it will work butt will need
heavy refactoring. If you take out the first table of each and saved
at txt file it would be much easier.

Best of luck
Lars








2011/5/2 Olivier 'Babar' Raginel <wiki@babar.us>
>
> On Mon, May 02, 2011 at 09:46:07PM +0100, Gavin Henry wrote:
> > I'm the doc dev for the OpenLDAP project (ghenry@OpenLDAP.org) and I'm
> > moving our Faq content from Faq-O-Matic to our new wiki:
>
> That's great news!
>
> > Any tips for moving over? I can scrape the HTML into wiki syntax but
> > I'm sure others have done this before.
>
> Hum, I'm afraid most if not all of us have no idea how a Faq-O-Matic
> text looks like. From what I could grasp with 3 minutes web-browsing,
> it seems a very old and simple syntax, with not that many rules or fancy
> stuff, so writing a converter should be pretty much trivial.
>
> > Please save me from copy and paste!
>
> I'm not sure we can save you from copy and paste, but I'm pretty sure
> you can save yourself easily with one not so complex perl script, which
> should be able to migrate your content pretty easily.
>
> But the hard part is not migrating, it's defining the structure you want
> your new content to use. In Foswiki, things like FAQs are usually best
> used through pre-defined structures, either strict topic format, or
> forms, or both. So before migrating I suggest you think of what you want
> to achieve, and then you start hacking some perl script to convert your
> Faq-O-Matic to what you want.
>
> And if you need help in the process, you know where to find us :)
>
> Good luck,
>
> --
> Babar
>
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today.  Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> Foswiki-discuss mailing list
> Foswiki-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/foswiki-discuss



------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Foswiki-discuss mailing list
Foswiki-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/foswiki-discuss



-- 
http://www.suretecsystems.com/services/openldap/
http://www.surevoip.co.uk