> <<view fieldname ....>>
> is for displaying *single field values* from the *current tiddler*.
> It does not (currently) have a syntax to access values stored in other
> tiddlers.
Slightly off subject but if you do want to access and include fields
from other tiddlers then you can use this simple macro that I wrote.
---------------------------------
//{{{
config.macros.includeField = {
handler: function (place, macroName, params, wikifier, paramString,
tiddler)
{
var title = params[0] || tiddler.title;
var field = params[1] || "No field";
var tiddler = store.getTiddler(title);
if( field == "No field" ) {
wikify("No valid field name given", place);
} else if(tiddler === null) {
wikify(title+" does not exist", place);
} else {
var value = tiddler.fields[field];
wikify(value, place);
}
}
};
//}}}
-------------------------------------------
Then you can use it with the following syntax;
<<includeField TiddlerName FieldName>>
e.g.
<<includeField "Log number" changecount>>
Hope that helps,
Colm
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en.