Thanks for the responses. I decided to go with the currentTiddler method, 
and since this macro is in javascript, 
some poking around in the tiddlywiki source shows that i can reference 
this.getvariable("currentTiddler") from inside the macro.

While i can't make this method secure against a determined and 
knowledgeable person, 
I'm opting for the 'locks only keep the honest people out' approach. 


On Tuesday, October 3, 2017 at 7:05:09 AM UTC-5, [email protected] wrote:
>
> Ideally, i would like to create a macro, but i want it to only be called 
> from my approved places in the wiki.
> Is there a way to check either the caller or the macro's place in the 
> rendered hierarchy, such that i can limit its behavior based on that?
>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7dea48fa-c9a6-4cd6-a5fb-54e2aa6042df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to