Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
alias plugin and stylesheets
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Bob Paige  
View profile  
 More options Feb 3 2008, 10:54 pm
From: "Bob Paige" <bobpa...@gmail.com>
Date: Sun, 3 Feb 2008 22:54:23 -0500
Local: Sun, Feb 3 2008 10:54 pm
Subject: alias plugin and stylesheets
I am trying to make an alias (using alias plugin) that displays text
from the tidder macro in a given style sheet.

The normal syntax would be :

{{myStyle{<<tiddler [[some tiddler name##heading name]]>>}}}

But I want to create an alias. I know I could create a macro, but an
alias would be quicker/easier if I want to do this in the future.

I've tried this:

<<alias myStyle "{{myStyle{<<tiddler [[%0]]>>}}}">>

But this doesn't work. The "}}}" is displayed, and calling the alias
doesn't work.

Is there some way to escape these characters properly, or should I
just write a one-line macro?

--
Bobman


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Shulman  
View profile  
 More options Feb 4 2008, 12:30 am
From: Eric Shulman <elsdes...@gmail.com>
Date: Sun, 3 Feb 2008 21:30:17 -0800 (PST)
Local: Mon, Feb 4 2008 12:30 am
Subject: Re: alias plugin and stylesheets

> <<alias myStyle "{{myStyle{<<tiddler [[%0]]>>}}}">>
> Is there some way to escape these characters properly

<<alias myStyle {{"{{myStyle{<<tiddler [[%0]]\>\>\}\}\}"}}>>

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bob Paige  
View profile  
 More options Feb 4 2008, 9:14 am
From: "Bob Paige" <bobpa...@gmail.com>
Date: Mon, 4 Feb 2008 09:14:33 -0500
Local: Mon, Feb 4 2008 9:14 am
Subject: Re: [tw] Re: alias plugin and stylesheets
Eric,

Thanks for the syntax! Now I don't get the artifacts on screen for the
tiddler in which I define the alias (I use MainMenu for alias
definitions).

However, it still isn't working.

My style displays a floating box on the right, 50% the width of the
tiddler. If I use this:

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

If I redefine the alias to not call the tiddler macro but insert the
text directly, all I get is the passed text in the box:

<<alias myStyleNoTiddler {{"{{myStyle{%0\}\}\}"}}>>

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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Shulman  
View profile  
 More options Feb 4 2008, 9:28 am
From: Eric Shulman <elsdes...@gmail.com>
Date: Mon, 4 Feb 2008 06:28:15 -0800 (PST)
Local: Mon, Feb 4 2008 9:28 am
Subject: Re: alias plugin and stylesheets

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

-e


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bob Paige  
View profile  
 More options Feb 4 2008, 9:37 am
From: "Bob Paige" <bobpa...@gmail.com>
Date: Mon, 4 Feb 2008 09:37:01 -0500
Local: Mon, Feb 4 2008 9:37 am
Subject: Re: [tw] Re: alias plugin and stylesheets
I found the conflict: it was AutoWeavePlugin.

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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
AviMar  
View profile  
 More options Feb 17 2008, 1:49 am
From: AviMar <kLd...@gmail.com>
Date: Sat, 16 Feb 2008 22:49:23 -0800 (PST)
Local: Sun, Feb 17 2008 1:49 am
Subject: Re: alias plugin and stylesheets
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »