Ahh I see just change ... s~=":personal"] ...

+1 for a donation to Eric, I have done so and I encourage you all to do So.

On Wednesday, June 27, 2012 4:31:53 PM UTC+10, TonyM wrote:
>
> Thanks Eric,
>
> I will do this right away - however the full truth is I have tiddlers 
> tagged ":work" and ":personal" is this leading ":" goingf to trip this up 
> ?, any workaround or should I globally rename my tags and tiddlers with 
> them named in it to be sans ":" ?
>
> Thanks Very much
>
> On Wednesday, June 27, 2012 2:02:47 PM UTC+10, Eric Shulman wrote:
>>
>> > I have tiddlers tagged "work" and "personal" 
>> > 
>> > I would like to have part of a tiddler rendered if the tiddler is 
>> tagged 
>> > work and another part if it is tagged personal. 
>>
>> Add the following CSS to your StyleSheet: 
>>    .work { display:none; } 
>>    div[tags~="work"].tiddler .work { display:inline; } 
>>    .personal { display:none; } 
>>    div[tags~="personal"].tiddler .personal { display:inline; } 
>> Next, in your tiddler content, write something like this: 
>>    {{work{this is work content}}} 
>>    {{personal{this is personal content}}} 
>> and tag the tiddler with either "work" or "personal" (or neither or 
>> both!).  By default, the CSS-wrapped content is hidden, and will only 
>> be displayed if the tiddler is tagged with the corresponding tag 
>> value.  QED. 
>>
>> enjoy, 
>> -e 
>> Eric Shulman 
>> TiddlyTools / ELS Design Studios 
>>
>> WAS THIS ANSWER HELPFUL?  IF SO, PLEASE MAKE A DONATION 
>>    http://www.TiddlyTools.com/#Donations 
>> Professional TiddlyWiki Consulting Services... 
>> Analysis, Design, and Custom Solutions: 
>>    http://www.TiddlyTools.com/#Contact 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/2g5cIG0Qu8oJ.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to