Thanks for the explanation, Eric. Anyway, I'm already using your
StyleSheetShortcuts :D.
w

On 3 feb., 09:45, Eric Shulman <elsdes...@gmail.com> wrote:
> > The good thing about PartTiddlerPlugin is that the part can be visible
> > or hidden. Plus, how do you hide a section? With /% %/?
>
> > I tried this:
> > <<tiddler ".##Behind the scenes">>
> > /%!Behind the scenes
> > TEXT/%
>
> You can write:
>
> <<tiddler TiddlerTitle##sectionname>>/%
> !sectionname
> content
> !end
> %/
>
> OR
>
> <<tiddler TiddlerTitle##sectionname>>@@display:none;
> !sectionname
> content
> !end
> @@
>
> OR
>
> <<tiddler TiddlerTitle##sectionname>>{{hidden{
> !sectionname
> content
> !end
>
> }}}
>
> The first method, using TW comment markers (/% ... %/) prevents the
> hidden section content from being displayed or processed except when
> transcluded.
>
> The second method uses inline CSS (@@attr:val;...@@) to suppress the
> display of the section content, but that section is still processed
> when the tiddler is rendered, even if it is not being trancluded which
> can result in extra processing overhead or produce unwanted side-
> effects, depending upon what macros are in that section content).
>
> The third method is like the inline CSS syntax, but uses a CSS class
> wrapper ({{hidden{...}}}).
>
> Note that the first two methods both have a syntax limitation: because
> the /%...%/ and @@...@@ sequences are used to surround the hidden
> secdtion, you cannot use them *within* the content itself.  This limit
> doesn't occur when using the third method, because CSS wrapper syntax
> *can* be "nested" within itself.  Also note that the classname
> "hidden" is not defined by default, but can be easily defined by
> adding
>    .hidden { display:none; }
> to your StyleSheet tiddler.  You can also add this set of convenient
> 'formatting shortcut' classnames by installing:
>    http://www.TiddlyTools.com/#StyleSheetShortcuts
> and then add:
>    [[StyleSheetShortcuts]]
> to your StyleSheet.  This automatically *includes* the additional
> class definitions from StyleSheetShortcuts, without having to copy/
> paste them directly into your stylesheet.
>
> enjoy,
> -e
> Eric Shulman
> TiddlyTools / ELS Design Studios
>
> -------------------------
> Was this answer useful? If so, please help support TiddlyTools:
>
>    TiddlyTools direct contributions: (paypal)
>      http://www.TiddlyTools.com/#Donate
>    UnaMesa tax-deductible contributions:
>      http://about.unamesa.org/Participate(paypal)
>    TiddlyWiki consulting:
>      http://www.TiddlyTools.com/#ELSDesignStudios
>      http://www.TiddlyTools.com/#Contact

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
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