Question about styling with TaggedTemplateTweak

21 views
Skip to first unread message

Dave Gifford - http://www.giffmex.org/

unread,
Jul 13, 2011, 10:15:17 PM7/13/11
to TiddlyWiki
Hi guys

I have been digging through here trying to find this on my own, but I
failed.

I am using TaggedTemplateTweak to distinguish tiddlers by tag. All I
would really like to do is have all the external links inside a
tiddler tagged suchandsuch to be a certain color. But I have no idea
how to do that in the suchandsuchViewTemplate.

Dave

HansBKK

unread,
Jul 13, 2011, 11:22:14 PM7/13/11
to tiddl...@googlegroups.com
Warning - I'm not too sure about the below, so if a more knowledgeable TWer sees mistakes, corrections would be appreciated. . .

This plugin is designed to change the view/edit *templates* to your customized ones, not change the display of the inline text within your tiddler's content. I think (just guessing really) if you put your external URLs in custom fields, and then use your custom templates to assign those fields specific CSS classes, then your custom rules in StyleSheet could dictate how those classes display.

Another way - use the inline CSS @@ syntax around the URLs whose appearance you want to change, this doesn't require anything special with templates or fields.

If you're looking for a something to automagically distinguish offsite URLs and apply custom styling to just those, I don't know how to implement that, but I suspect it would need to be done by custom javascripting.

Hope this helps. . .

Dave Gifford - http://www.giffmex.org/

unread,
Jul 13, 2011, 11:37:44 PM7/13/11
to TiddlyWiki
Sorry Hans, I know there is a way to do what I mentioned without
manually adding syntax around every link. It either amounts to
tweaking the suchandsuchViewTemplate or adding a secondary Stylesheet.
Just don't know how to do either

Dave
Message has been deleted

PMario

unread,
Jul 14, 2011, 3:59:51 AM7/14/11
to TiddlyWiki
May be this is an option.

http://coloredlinks.tiddlyspot.com/

-m

Måns

unread,
Jul 14, 2011, 4:21:43 AM7/14/11
to TiddlyWiki
Hi Dave

>All I would really like to do is have all the external links inside a
> tiddler tagged suchandsuch to be a certain color.

You can do it in your StyleSheet tiddler - like this:

div[tags~="redLink"] a.externalLink{
text-decoration: none;
color:red;
padding-right: 1em;
background: transparent;
}

div[tags~="redLink"] a.externalLink:hover{
text-decoration: underline;
}

Here is my testexample (also with wikipedia-like links):
http://begynder.tiddlyspot.com/#TestLink%231%20TestLink%232%20TestLink%233

Cheers Måns Mårtensson

Dave Gifford - http://www.giffmex.org/

unread,
Jul 14, 2011, 7:52:13 AM7/14/11
to TiddlyWiki
Reply all
Reply to author
Forward
0 new messages