Hi there,
Has anyone implemented getting Twiki to insert a back reference to the referring page when you are creating a new topic?
So, for instance, if I create a page called MainPage that says:
This has three items:
- ItemOne
- ItemTwo
- ItemThree
Then if I create ItemOne by clicking on it, its default contents are:
See MainPage
-- MartinCleaver - 26 Mar 2001
I looked at implementing this with the Search function. Immediately, the first problem was getting search to return a link instead of a whole reference line.
But, after grinning and bearing it, and after creating a few pages, I soon came to realize that one typically doesn't want to know about
all the links that reference this page - especially when writing directed documentation. (If you really want to know this, then just click on the Ref-By link at the bottom of the page.)
However, I agree that one might want to use a function in the "new" template that can acquire the "page that was clicked on" that got the user to the new template. Unfortunately, I have no idea how to implement this!
--
BruceDawson - 27 Mar 2001
I think it would be just a case of passing in a created-by parameter on the URL line with the name of the page that had seen the undefined topic and having the create script use this to create a back link.
--
MartinCleaver - 28 Mar 2001