Hello Eric and all,

I tried to play around with this and follow on.
I created a tiddler [[tagInTiddler1]] and then in my 
css tiddler [[jpen24_Css]] I put in your css code.

For some odd reason the "work" portion will not stay hidden when not tagged.
The ''personal'' portion is hidden fine though.

Did I do something wrong or am I overlooking something?
Below I will throw in a minimal test case to show you.

https://dl.dropbox.com/u/68910256/j_unplugged.html

Best regards,

Julio


On Wednesday, June 27, 2012 12:02:47 AM UTC-4, 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/-/udlab3vjkCcJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to