On Wednesday, March 5, 2014 12:14:57 PM UTC-6, Eric Shulman wrote:
>
> 1) Note that this only applies to TiddlyWiki Classic (TWC), not 
> TiddlyWiki5 (TW5).  Please remember to put either TWC or TW5 in the subject 
> of your posts.
>
> My apologies - this was my first post.  The instructions read, "If you are 
posting a question..." and since this wasn't a question I assumed it didn't 
matter.  My bad - I now see that it does.  Thanks for pointing that out.
 

> 2) The code you posted can be shortened to:
> <html><a href="javascript:;" onclick="story.closeAllTiddlers();restart();" 
> title="Display default tiddlers">My Site Title</a></html>
>
Awesome.
 

> * colors should not be hard coded.. you should add/edit custom CSS in 
> [[StyleSheet]] to affect changes in appearance
>
Agreed that I should have used CSS and I went back and changed it with a 
caveat - see final comments below.
 

> 3) I suggest moving the code to another tiddler, e.g., 
> [[ShowDefaultTiddlers]], with a substitution parameter for the clickable 
> text, like this:
> <html><a href="javascript:;" onclick="story.closeAllTiddlers();restart();" 
> title="Display default tiddlers">$1</a></html>
> Then, you can use this in [[SiteTitle]] like this:
> <<tiddler ShowDefaultTiddlers with: "Site title goes here">>
> The net advantages are that
> * the content in SiteTitle is more readable because the technical stuff is 
> separated in another tiddler
> * you can re-use the same transclusion to add a "home" link elsewhere in 
> your document (e.g., [[MainMenu]] or [[SideBarOptions]]).  For example:
> <<tiddler ShowDefaultTiddlers with: "home">>
>
> I actually had tried this (I used this already in my SideBarOptions menu) 
by employing exactly this.

Final comment:  I am fairly new to TiddlyWiki and use dCubed GTD versus an 
out-of-the-box TiddlyWiki. I posted in this group since the tip applies to 
both.
My Site Title is actually "Bill Mullen's d3 GTD" with the 3 superscripted.  
When I tried using

<<tiddler ShowDefaultTiddlers with: "Bill's d^^3^^ GTD">>

the "3" was not superscripted and the carets were displayed as carets which 
I somewhat expected, so I used the code I posted originally. Is there a way 
to use the replaceable parameters passing text with TiddlyWiki Markup?  

As per the hard coding of the color, the HTML code did not honor the CSS 
(not real sure why) for SiteTitle. So, I dropped the hard coded color and 
employed the siteTitle class which solved the color problem.



 

> enjoy,
> -e
> Eric Shulman
> TiddlyTools / ELS Design Studios
>
> YOUR DONATIONS ARE VERY IMPORTANT!
> HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
>    http://TiddlyTools.github.com/fundraising.html#MakeADonation
>
> 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 unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to