|
bucky Barkley
Registered User
Join date: 15 May 2006
Posts: 200
|
10-06-2006 16:00
I am trying to interlink a half dozen notecards or so. Think of a small wiki. This isn't strictly a scripting question, but more of a "how to get the correct version of everything linked?" one .. Scripters will have the most insight for this... Try the simple exercise of: * make a table of contents notecard * have it point to a couple of other notecards * the child notecards point back to the table of contents, and possibly to each other * edit something ... Do you run into versioning hell with this? What I am finding is that I make a link to a child card, and things are fine. Now I go edit the child card, and the table of contents will still point at the first version. Or... I will add to the table of contents, and the child card will go back to the original TOC. Maddening  Is there a good strategy for interlinking a series of notecards? (or is the answer "dont"?)
|
|
Ohforf Uram
n00b
Join date: 27 Jun 2006
Posts: 82
|
10-06-2006 18:16
I never tried this, but it think the Problem is : when you edit a Notecard and save it, you create a new one with a new key, so the links pointing to this card will point to the old Version. Now, linking from Card A to Card B and back seems impossible to me. (please correct me if i'm wrong)
If i was you, i would keep things simple : first, create the child cards then, create the TOC Card dont link back to TOC, the user can keep the TOC Notecard open if you ever edit a child card, update the link in the TOC
|
|
Aakanaar LaSalle
Registered User
Join date: 1 Sep 2006
Posts: 132
|
10-06-2006 22:23
Ohforf is correct. Every time you edit a card, it creates a new one, with a new key. This is the one reason we don't have a llWriteNotecardLine function. There is some talk that someday the assett server will be re-done to allow this, but I wouldn't hold your breath unless the guy next to you passed gas. From: someone Changing the asset system has been looked at, but it would evidently necessitate a fairly major rewrite of the entire database, and is not something that's likely to happen. This is from the llGetNotecardLine page.
|
|
bucky Barkley
Registered User
Join date: 15 May 2006
Posts: 200
|
10-07-2006 10:34
Sigh - yep. I suppose the "solution" in the meantime is to get all of the cards situated, start linking, then make another pass through them doing a minor edit (add a space to the end), and relink... the goal being to get the current version of the content pointed to by all other cards that address it.
|
|
Aakanaar LaSalle
Registered User
Join date: 1 Sep 2006
Posts: 132
|
10-07-2006 10:38
The problem is.. you can't have two way linking..
As soon as you get the first notecard linked to the second and then edit the second to link to the first, the second gets a new number and the first link no longer works
So the best you can do is a heiarchy of links, each notecard linking to other notecards below it, or to other notecards that are already linked and no longer being edited.
So start with the cards that are not linking to any other cards, then move to the cards linking to those then the ones linking to those, etc.. Untill you get to the ToC
|