devel
[Top] [All Lists]

[PurpleWiki] purplewiki transclusions

To: devel@xxxxxxxxxxxxxxxxxxxxxxx
From: cdent@xxxxxxxxxxxx
Date: Wed, 21 May 2003 03:56:04 -0500 (EST)
Message-id: <Pine.LNX.4.44.0305210347500.11178-100000@cream.burningchrome.com>


This was far easier than I thought it was going to be and already
I'm starting think of all the problems this is going to cause.    (01)

FoodTest is my test page at the moment:    (02)

  http://www.burningchrome.com:8000/~cdent/wiki.cgi?FoodTest    (03)

On that page, the ugly green stuff is provided by a CSS span with
class 'transclusion'. I felt this was necessary since I'm
completely inline the text: if you want formatting you either get
what it provides or you wrap it (see my indentation).    (04)

The first transclusion is from the blog, not the wiki.    (05)

The purple 'T' is a link to this node in its original context:
this is currently done by pointing back to the original page.
This should instead redirect through some kind of CGI, to we can
use the NIDs as ids and not worry about URLs. I could do it now 
with SpaceCGI but I didn't think of that until just now and I've
hit my limit on code for tonight.    (06)

You'll note that HTML already in the node is available, so links
still work.    (07)

This:    (08)

  http://www.burningchrome.com:8000/~cdent/wiki.cgi?FoodTest#nid00000Q5    (09)

causes an infinite loop when it is wrapped with the proper
brackets because it is calling on itself to get the data. nid PZ is
on the same page:    (010)

  http://www.burningchrome.com:8000/~cdent/wiki.cgi?FoodTest#nid00000PZ    (011)

All of this is very crufty, but I'm just stunned that it is working.
Once we settle out the nid naming issues it will be slightly less
crufty and then once we have node based data storage: wheee!    (012)

More general stuff in the next message.    (013)

-- 
Chris Dent
cdent@blueoxen.org    (014)

-- 
This message is archived at:    (015)

http://purplewiki.blueoxen.net/forums/cgi-bin/mesg.cgi?a=devel&i=Pine.LNX.4.44.0305210347500.11178-100000@cream.burningchrome.com    (016)
<Prev in Thread] Current Thread [Next in Thread>
  • [PurpleWiki] purplewiki transclusions, cdent <=