archive_me1Add my vote for this tag create new tag
, view all tags
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

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2001-03-28 - MartinCleaver
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.