> My goal: Make a macro that takes the text from the tiddler siteTitle
> and displays it when you write <<siteTitle>> anywhere on the site --
> same with siteSubtitle, respectively.

As an exercise in macro writing, I suppose those would be as good as
any.

However, the functionality you describe is already provided by TWCore
macro:
   <<tiddler TiddlerName>
will 'transclude' (aka, embed) content from the named tiddler into the
current one.

> I read the tutorial on how to create a custom macro 
> here:http://oldwiki.tiddlywiki.org/wiki/Dev:Custom_Macros
> but I still don't know how to access the specific tiddlers "siteTitle"
> and "siteSubtitle"

var txt=store.getTiddlerText("NameOfTiddler","default value");

If the named tiddler doesn't exist, it returns the indicated default
value (or NULL if no default is provided)

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

Help support TiddlyTools:
   http://www.TiddlyTools.com/#Donate (paypal)
TiddlyWiki Professional Consulting:
   http://www.TiddlyTools.com/#ELSDesignStudios
   http://www.TiddlyTools.com/#Contact

-- 
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.

Reply via email to