Have you tried this?
var tid = findContainingTidder();

If new tiddle is in the sidebar, it wont work.
not tested.
-m
http://www.tiddlytools.com/insideTW/#Story.prototype.findContainingTiddler

On Sep 12, 10:27 pm, whatever <[email protected]> wrote:
> Hi!
> I have a bunch of users and each user requires a dashboard. Each
> user's properties are in a user's tiddler and the dashboard is a
> separate tiddler. I'm using fET to check if the dashboard exists and
> if it doesn't, it displays a button to create the dashboard.
> The button consists of the following script:
> <script label="New user dashboard" title="Create a new User
> Dashboard">
> var alwaysTag="user_dashboard";
> var alwaysTitle="'s Dashboard";
> var title=(tiddler.title+alwaysTitle);
> var tags=(alwaysTag);
> store.saveTiddler(
>   title,
>   title,
>   "",
>   config.options.txtUserName,
>   new Date(),
>   tags);
> story.displayTiddler(null,title);
> </script>
> The problem is, that the is located in the New Buttons tiddler and
> when I invoke it using <<tiddler [New Buttons/
> NewUserDashboardSpecific]]>> it produces the title "New Buttons/
> NewUserDashboardSpecific's Dashboard" instead of, say, "Jake's
> Dashboard". But if I put it in the Jake tiddler, it works fine.
> What am I missing?
> w

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