Hello there.
I am trying to get "Tagging:" to be replaced by the title of the tiddler. Then I want to remove the title on my view template.
I have followed eric's advice and have a tiddler called ConfigTweaks. I have attemped to alter this bit, but with no joy:
merge(config.macros.tagging,{
label: "tagging: ",
labelNotTag: "not tagging",
tooltip: "List of tiddlers tagged with '%0'"});
Any help much appriciated.
Alex
Why not just modify the ViewTemplate - replace the following line:
<div class='tagging' macro='tagging'></div>
... with this:
<div class='title' macro='view title'></div>
Though I'm not sure whether this is what you're actually after - maybe
you just want the title to be floated to the left? Try adding something
like this to your StyleSheet:
---------------
.tiddler .title {
float: left;
border: 1px solid [[ColorPalette::TertiaryLight]];
padding: 5px;
background-color:[[ColorPalette::TertiaryPale]];
}
---------------
HTH.
-- F.
Oh right, of course.
Try adding the following code to a tiddler tagged with "systemConfig":
http://tiddlywiki.pastebin.com/f6a0a97d1
This overrides the default tagging macro - that's not a pretty solution,
but I don't think there's a simple, clean solution here.
HTH.
-- F.
Don't bother - if yours works, that's a *much* better solution then.
Nicely done.
-- F.
Honestly, you've surprised both Eric and myself with this very elegant
solution.
How did you come up with it in the first place? I would never have
thought of trying this...
-- F.
Put the following line in a tiddler (e.g., [[ConfigTweaks]]), and tag
it with "systemConfig"... after save-and-reload, the new text will be
used.
--------------------
config.views.wikified.defaultText="You have not addressed '%0' in this
exercise yet. Please double-click and decide how you prioritise this
value";
--------------------
Note: %0 is automatically replaced with the tiddler name.
The easiest way to find the 'insides' is to look at the TW file
source, using a plain text editor (e.g., windows: WordPad, mac:
TextEdit), and search for the desired user-visible text that is being
displayed in the running TW document.
merge(config.views.wikified,{
defaultText: "The tiddler '%0' doesn't yet exist. Double-click to create it",
defaultModifier: "(missing)",
shadowModifier: "(built-in shadow tiddler)",
dateFormat: "DD MMM YYYY",
createdPrompt: "created"});transforms to merge(config.macros.tagging,{
label: "tagging: ",
labelNotTag: "not tagging",
tooltip: "List of tiddlers tagged with '%0'"});