It would be wonderful if you would post this to the Swiki Swiki (on 
minnow). There aren't too many asking for this, so I don't think you need 
to spend too much time cleaning it up, but something is better than 
nothing.

As far as adding a dropdown "links to this page," it isn't hard.
Use the SwikiBrowser to create a page action named references for your 
swiki. In there, put this code:

book references: page

before: [:results | '<form action="', (request referenceShelf: shelf 
book: book address: 'link'), '" method="post">&nbsp;&nbsp;<i>links to 
this page:</i>&nbsp;&nbsp;&nbsp;<select name="name">', String crlf]

during: [:element | '<option value="', (element id asString), '">', 
element showName, String crlf]

after: [:results | '</select>&nbsp;<input type="submit" value="go 
there">', String crlf, '</form>']

ifAbsent: ['']

That should pretty much do it. BTW, I recommend not doing this to the 
refs swiki as that one should probably be completely replace with each 
upgrade.

Peace and Luck!

Je77

On Wed, Nov 28, 2001 at 10:30:41AM +0100, [EMAIL PROTECTED] wrote:
> Howdy all!
> 
> We have just managed to whip some intelligence back into the
> PWS-converter so that we can migrate our tr�s old trusty PWS Swiki with
> about 650 pages to BigTime instead. It's about time, wouldn't you say?
> :-) He, that old dog still runs on a Linux Squeak2.3 VM...
> 
> We also added generation of the referenceCache (turned the script into a
> two-pass variant) so that we can migrate into a docs-swiki if we like.
> And of course, full history is preserved (as was also implemented in the
> old script).
> 
> Question: How would we go about adding a "links to this page" dropdown
> menu like the one on minnow (Squeak wiki)? I could probably figure it
> out myself but wanted to check first if there are any traps ahead.
> 
> We also noticed that the formatter adds <br>s even if it is inside a
> table-tag etc. which messes up some of our old pages using tables, we
> might try to fix that.
> 
> regards, G�ran
> 
> PS. If someone is interested in our spiffed up version of the PWS
> converter, post and I will see if popular demand can bring us to clean
> the code up a bit and post it... ;-) DS

Reply via email to