On Wednesday, March 4, 2015 at 1:04:35 PM UTC-8, [email protected] wrote:
>
> In the Control Panel -> Info -> Basics, for "Username for signing edits"
> I would like to enter a username that links to a tiddler of another name. 
> For example, I have a Tiddler called "Contact" that has my contact 
> information. But I'd like to simply "sign" all edits with something like 
> "admin" or my initials "NRM".
> When I enter something like [[NRM|Contact]] into the username box, that 
> exact string shows up as the editing username at the top of the tiddler (in 
> italics) INSTEAD of just the letters NRM that would take me to the 
> "Contact" tiddler.
> Is there a reason that this type of formatting works for the Tiddlywiki 
> title, subtitle and default tiddlers but NOT for the Username?
>

1) The username is really just a text string, the value of which is copied 
into the "modifier" field of a tiddler whenever that tiddler is edited.
2) The *display* of the username is defined in the core shadow: 
[[$:/core/ui/ViewTemplate/subtitle]], which contains:
------------
<div class="tc-subtitle">
<$link to={{!!modifier}}>
<$view field="modifier"/>
</$link> <$view field="modified" format="relativedate"/>
</div>
------------

This is the syntax that actually displays the username in the tiddler 
subtitle:
    <$view field="modifier"/>
Note that the output of the <$view> widget is normally just *plain text*... 
thus, the wiki syntax contained in the username does not get parsed, and 
the output shows the username value exactly as defined.  However, it is a 
simple matter to change this.  Rather than using the <$view> widget to 
display the modifier field, use transclusion, like this:
   {{!!modifier}}
As with the <$view> widget, this will retrieve the value of the 'modifier' 
field for the current tiddler, but will also then parse that field value so 
that any wiki syntax it contains will be rendered as intended.  Thus, if 
you use "[[NRM|Contact]]" as your username, then it will display as just 
"NRM", and link to the [[Contact]] tiddler.  Q.E.D.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

"Inside TiddlyWiki: The Missing Manual"
https://www.indiegogo.com/projects/inside-tiddlywiki-the-missing-manual/x/8816263
Note: the IndieGogo funding campaign has ended.. but direct fundraising 
continues below:...

YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
   http://TiddlyTools.github.com/fundraising.html#MakeADonation

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
   http://www.TiddlyTools.com/#Contact

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to