|
ReferrerMarkup<< | Cookbook-V1 | >> Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.
GoalAdd markup that creates a link to the referring page. SolutionAdd the following lines to local.php: $DoubleBrackets['/\\[\\[\\$Referr?er(\\s+.*?)?\\]\\]/'] =
'[['.@$HTTP_SERVER_VARS['HTTP_REFERER'].'$1]]';
DiscussionSometimes an author will want to provide a link back to the page that referred the user to the current page--similar to the "Back" button available in most browsers. The above lines add For historical reasons the HTTP_REFERER header is in fact misspelled ("referer" instead of "referrer"), so it may be useful to allow both spellings as done above. See Also
Contributors
pmwiki-2.2.0-beta68 -- Last modified by {{}}?
|