Question
I would like to be able to automatically create a link on the originating page to the new page I'm creating. The new page is an automatically named page and in creating that page, I should be able to create a link back to the originating page without much trouble. Any ideas?
Environment
--
JoeDeal - 27 Feb 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
If you have an app that creates new topics based on a template topic you can use a URL parameter, e.g.
%URLPARAM{"topicparent"}%. See example
MeetingMinutes and
MeetingMinutesTemplate.
A little less efficient is to use a SEARCH on itself to grab the parent. Example:
Parent:
%SEARCH{ "%TOPIC%" scope="topic" topic="%TOPIC%" nosearch="on" nototal="on" format="[[$parent]]" }%
Parent:
AnsweredQuestions
--
PeterThoeny - 28 Feb 2006
Cool! THANKS! I'm slowly starting to think like a wiki.
--
JoeDeal - 28 Feb 2006
Its my opinion that TWiki should offer the capability to throw explicit backlinks into the text of any page that is referred to by the page just edited.
Just adding links to the bottom of referred-to the page would prompt others to incorporate proper links to the back links.
This is better than adding a search because it has no run-time impact and the link can be put into verbage that properly contextualises it.
There would need to be a tick box (ticked by default) to allow the author to inhibit the automatic backlinking.
--
MartinCleaver - 28 Feb 2006
Agreed, my response was to help existing customers. This will be possible once we have the
ContentAccessSyntax.
--
PeterThoeny - 28 Feb 2006