So it appears there is some odd interaction with the tiddler macro.
Incidentally, I tried to write my own macro that functions the same as this alias, but I get the same results; floating box with no content, as if the tiddler macro is never called.
If we can't get some form of macro working on this, I can continue to insert the CSS call myself, but I'd rather abstract it behind some sort of macro (alias or otherwise).
-- Bobman
On Feb 4, 2008 12:30 AM, Eric Shulman <elsdes...@gmail.com> wrote:
> {{myStyle{<<tiddler [[SomeTiddler]]>>}}}
> Then the tiddler macro is called and the contents appear in the floating box.
> If I use the alias as you gave it to me, I get the floating box (only
> one line tall) with no content.
Very odd... I just tried this in an empty TW (with AliasPlugin
installed, of course), and it works as expected!
Here's what I did:
1) Create a tiddler [[SomeTiddler]] and put some content into it
2) In [[StyleSheet]] (empty by default), put:
.green { color:green; }
3) Create another tiddler, [[SetAlias]], containing
<<alias myStyle {{"{{green{<<tiddler [[%0]]\>\>\}\}\}"}}>>
4) Create [[TestTiddler]], containing:
<<myStyle SomeTiddler>>
result: the content from [[SomeTiddler]] is displayed in green.
Perhaps you have installed some other plugin that it messing things
up? (note: the above test also worked directly in TiddlyTools, so if
there IS a plugin-interaction occurring, it would have to be with a
non-TT plugin...)
When I passed the name of my other tiddler as an argument to the alias, AutoWeavePlugin was inserting square brackets around it, which was resulting in non-functional arguments. If I insert the square brackets myself, AutoWeave does not come into play, and I'm good to go.
I wonder how hard it would be to update AutoWeavePlugin to ignore text within macro calls?
-- Bobman
On Feb 4, 2008 9:28 AM, Eric Shulman <elsdes...@gmail.com> wrote:
> > {{myStyle{<<tiddler [[SomeTiddler]]>>}}} > > Then the tiddler macro is called and the contents appear in the floating box.
> > If I use the alias as you gave it to me, I get the floating box (only > > one line tall) with no content.
> Very odd... I just tried this in an empty TW (with AliasPlugin > installed, of course), and it works as expected!
> Here's what I did:
> 1) Create a tiddler [[SomeTiddler]] and put some content into it > 2) In [[StyleSheet]] (empty by default), put: > .green { color:green; } > 3) Create another tiddler, [[SetAlias]], containing > <<alias myStyle {{"{{green{<<tiddler [[%0]]\>\>\}\}\}"}}>> > 4) Create [[TestTiddler]], containing: > <<myStyle SomeTiddler>>
> result: the content from [[SomeTiddler]] is displayed in green.
> Perhaps you have installed some other plugin that it messing things > up? (note: the above test also worked directly in TiddlyTools, so if > there IS a plugin-interaction occurring, it would have to be with a > non-TT plugin...)
I ran into this "bug" when running sitemap macro - the plugin would
bracket the name of the term I was trying to sitemap.
I couldn't find where to contact AutoWeavePlugin's author, Laurence
Man.
Could this be looked at?
-Avi
On Feb 4, 4:37 pm, "Bob Paige" <bobpa...@gmail.com> wrote:
> When I passed the name of my other tiddler as an argument to the
> alias, AutoWeavePlugin was inserting square brackets around it, which
> was resulting in non-functional arguments. If I insert the square
> brackets myself, AutoWeave does not come into play, and I'm good to
> go.
> I wonder how hard it would be to update AutoWeavePlugin to ignore text
> within macro calls?
> --
> Bobman
> On Feb 4, 2008 9:28 AM, Eric Shulman <elsdes...@gmail.com> wrote:
> > > {{myStyle{<<tiddler [[SomeTiddler]]>>}}}
> > > Then the tiddler macro is called and the contents appear in the floating box.
> > > If I use the alias as you gave it to me, I get the floating box (only
> > > one line tall) with no content.
> > Very odd... I just tried this in an empty TW (with AliasPlugin
> > installed, of course), and it works as expected!
> > Here's what I did:
> > 1) Create a tiddler [[SomeTiddler]] and put some content into it
> > 2) In [[StyleSheet]] (empty by default), put:
> > .green { color:green; }
> > 3) Create another tiddler, [[SetAlias]], containing
> > <<alias myStyle {{"{{green{<<tiddler [[%0]]\>\>\}\}\}"}}>>
> > 4) Create [[TestTiddler]], containing:
> > <<myStyle SomeTiddler>>
> > result: the content from [[SomeTiddler]] is displayed in green.
> > Perhaps you have installed some other plugin that it messing things
> > up? (note: the above test also worked directly in TiddlyTools, so if
> > there IS a plugin-interaction occurring, it would have to be with a
> > non-TT plugin...)