Questions answered by this recipe
- How can I let authors change their names?
- I'm using an authentication system and
. How can authors use their own name whilst retaining the internal (unambiguous) designation (perhaps for accountability)?
Displays author page titles as link text for all automatic author links.
If you want a one-to-one correspondence between credentials and author names (usually for accountability or authorship rights):
- Ensure that you have some form of
, be it that or
or something else, before the include of
- Then, in Site.EditForm, replace
(:input e_author :)with
HomePageto replace the Author input box with the author's chosen name (as the
value is unchangeable).
You can change
TimeFmt if you like, but make sure to do so before including this recipe. Note: this only affects
Just use as normal. The following are transparently changed:
- Author links in RecentChanges
- Author links in signatures.
- Author names in page history (
PHP doesn't support namespaces, so I assumed that nobody else would use variables starting with
$FriendlyAuthorLinks. If my assumption is incorrect... there still probably won't be problems. I've been over-cautious because I don't want to break anything.
Show the Friendly Author Name inDone!
I do not know how to get the title of another page from PHP. wizzwizz4Solved. I do not think it possible to do this simply by changing
For some reason,Still don't know why, but it doesn't happen any more. :-D
ResolvePageNameseems to trigger a redirect. I don't know why. wizzwizz4
Change log / Release notes
- 2018-01-01: Added page history support.
- 2017-12-28: Initial release.
If the recipe has multiple releases, then release notes can be placed here. Note that it's often easier for people to work with "release dates" instead of "version numbers".