MatchTags question

51 views
Skip to first unread message

axelm

unread,
Oct 24, 2011, 5:33:25 PM10/24/11
to tiddl...@googlegroups.com
Hello All,

I am using this:

<<matchTags popup "label:someTag" someTag AND (NOT excludeLists)>>

How can I make the font in this list larger?
I want to make the font in this particular list larger, not in all the popups.

I can change the size in the StyleSheet like this:

.popup { font-size: 110%; }

but this makes the font in ALL the popups larger, no good.

Any help would be appreciated,

axelm

Måns

unread,
Oct 25, 2011, 9:30:09 AM10/25/11
to TiddlyWiki
Hi axelm

Does it work if you wrap the macro in this?:

@@font-size:14pt;line-height:120%;<<matchTags popup "label:someTag"
someTag AND (NOT excludeLists)>> @@

- or include StyleSheetShortcuts from tiddlytools
http://www.tiddlytools.com/#StyleSheetShortcuts in your StyleSheet and
write a css class surrounding the matchtagmacro:
{{big{<<matchTags popup "label:someTag" someTag AND (NOT
excludeLists)>>}}}

Cheers Måns Mårtensson

axelm

unread,
Oct 25, 2011, 12:23:12 PM10/25/11
to tiddl...@googlegroups.com
Hello Måns,

tried both, but no go.
The label changes, but not the contents of the list.

The contents seem to be controlled by ".popup", because I can adjust the font size in the stylesheet like this:

.popup { font-size: 110%; }

But it changes all the lists, that is the problem.

any ideas?

axelm

Måns

unread,
Oct 26, 2011, 8:22:23 AM10/26/11
to TiddlyWiki
Hi axelm


> The label changes, but not the contents of the list.

Maybe this will work?: (haven't actually tried it myself ...)
Install NestedSlidersPlugin http://www.tiddlytools.com/#NestedSlidersPlugin
and create a popup with it:

@@font-size: 110%;<<matchTags "+++^*[someTag][close someTag]...
\n#[[%0]] (%2)<br>^^%5^^" "\n===" sort:-modified someTag AND (NOT
excludeLists)>>@@

where
%0 is the title
%2 is modified (date of last change)
%5 is a description (tiddler slice or section content named
"description" or "Description")

Cheers Måns Mårtensson

Måns

unread,
Oct 26, 2011, 8:25:41 AM10/26/11
to TiddlyWiki
btw - if the nested slider popup behaves weirdly - or is positioned
far from the button you can add:
position:relative; to the style - like so:
@@font-size: 110%;position:relative;<<matchTags"++
+^*[someTag]..............===">>@@

Cheers Måns Mårtensson

On 26 Okt., 14:22, Måns <humam...@gmail.com> wrote:
> Hi axelm
>
> > The label changes, but not the contents of the list.
>
> Maybe this will work?: (haven't actually tried it myself ...)
> Install NestedSlidersPluginhttp://www.tiddlytools.com/#NestedSlidersPlugin

axelm

unread,
Oct 26, 2011, 10:47:22 AM10/26/11
to tiddl...@googlegroups.com
That works, but now they are all individual tiddlers side by side, no more "popup" list.

axelm

Måns

unread,
Oct 26, 2011, 1:06:53 PM10/26/11
to TiddlyWiki
Hi axelm

> That works, but now they are all individual tiddlers side by side, no more
> "popup" list.

My fault . sorry
Just create a normal list (no popup) and put it inside the
Nested(popup)slider..
@@font-size: 110%;+++^*[someTag][close someTag]... <<matchTags
"\n#[[%0]] (%2)<br>^^%5^^" "\n" sort:-modified someTag AND (NOT
excludeLists)>>===@@

This should work as intended - I hope...

Cheers Måns Mårtensson

axelm

unread,
Oct 26, 2011, 1:38:32 PM10/26/11
to tiddl...@googlegroups.com
Yes that works!
Thank you very much.

I am interested in adding the "Description" after the title in the list.
How do I add a "slice" or "section" to a tiddler?
I tried adding a field named "Description", but it doesn't show up in the list?
Can I change the %5 to show a field value? How?

thank you for your help, Måns

axelm

axelm

unread,
Oct 26, 2011, 2:16:27 PM10/26/11
to tiddl...@googlegroups.com
I got it figured out, thank you.

Also, it seems when you use MatchTags with "popup", you can not add the slice value.
That is to bad.

axelm
 

Eric Shulman

unread,
Oct 27, 2011, 11:54:34 PM10/27/11
to TiddlyWiki
> I am using this:
> <<matchTags popup "label:someTag" someTag AND (NOT excludeLists)>>
> How can I make the font in this list larger?
> I want to make the font in this particular list larger, not in all the
> popups.
>
> I can change the size in the StyleSheet like this:
> .popup { font-size: 110%; }
> but this makes the font in ALL the popups larger, no good.

As already noted in this thread, the following does *not* do what you
need:
{{classname{<<matchTags popup ...>>}}}

The problem is that the CSS classname "wrapper" only applies to the
*label* for the popup and not the popup itself because the popup is
actually a descendent of the entire document background and not the
CSS wrapper container.

Fortunately, I have a solution that makes it possible to customize the
popup styles:

I have updated MatchTagsPlugin so that when the popup is created, it
is automatically assigned both "popup" *and* "matchTags" as
classnames. Thus, to customize the popups generated by
MatchTagsPlugin, you can now write the following in [[StyleSheet]]:
.matchTags .popup { ... }
and it will be automatically applied to MatchTagsPlugin-generated
popups (but not other popups).

Q.E.D.

Get the update (v2.0.6) here:
http://www.tiddlytools.com/#MatchTagsPlugin
http://www.tiddlytools.com/#MatchTagsPluginInfo


enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

----
TiddlyTools needs YOUR financial support...
Help ME to continue to help YOU...
make a generous donation today:
http://www.TiddlyTools.com/#Donations

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
http://www.TiddlyTools.com/#Contact

axelm

unread,
Oct 28, 2011, 12:48:05 PM10/28/11
to tiddl...@googlegroups.com
Eric, you are the best!These links point to 2.0.5
not 2.0.6

Is 2.0.5 the one I need?

axelm

axelm

unread,
Oct 28, 2011, 1:46:32 PM10/28/11
to tiddl...@googlegroups.com
Never mind, I was to fast on the trigger, got the right version now.

How can I show a "field" value after the links in a popup?

Like the %5 ? It works, but not in the "popup" version?

axelm


axelm

unread,
Oct 28, 2011, 2:19:27 PM10/28/11
to tiddl...@googlegroups.com
Unfortunately, I can't get it to work, it is just ignored:

 .matchTags .popup { font-size: 14pt }

axelm


Eric Shulman

unread,
Oct 28, 2011, 4:41:06 PM10/28/11
to TiddlyWiki
> How can I show a "field" value after the links in a popup?
> Like the %5 ? It works, but not in the "popup" version?

Currently, the popup only displays tiddler titles. I will need to add
a feature to allow specifying an alternative format (using the same
formatting params as the non-popup output).

I'll post when I have an update....

-e

Eric Shulman

unread,
Oct 28, 2011, 4:42:02 PM10/28/11
to TiddlyWiki
> Unfortunately, I can't get it to work, it is just ignored:
>  .matchTags .popup { font-size: 14pt }

omit the ".popup" classname and just use:
.matchTags { font-size: 14pt }

-e

axelm

unread,
Oct 28, 2011, 5:12:40 PM10/28/11
to tiddl...@googlegroups.com

Currently, the popup only displays tiddler titles.  I will need to add
a feature to allow specifying an alternative format (using the same
formatting params as the non-popup output).

I'll post when I have an update....

That would be so cool if it would work on a field, slice or section. Can't wait.

> .matchTags { font-size: 14pt }

Now it works, thank you so much.
 
axelm

Reply all
Reply to author
Forward
0 new messages