On Apr 8, 2:22 pm, "[email protected]" <[email protected]>
wrote:
> I will be distributing my tiddlywiki (probably via email) and expect
> that many people will have an 'offline' copy. I also have a version
> that is served up via the web and that allows editing (via
> UploadTiddler). I would like to add a link that will only display in
> the 'offline' version that basically points people to the editable
> wiki (but I don't want it to show on the online version). Any
> suggestion on how to easily accomplish this?
Using
http://www.TiddlyTools.com/#InlineJavascriptPlugin
you can write:
{{span{[[text|URL]]<script>
if (document.location.protocol!='file:')
place.style.display='none';
</script>}}}
Basically, this contains the external link within a CSS class wrapper
(any classname will do), along with a little inline script that hides
the container ('place') if the document protocol isn't "file:".
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
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
-~----------~----~----~----~------~----~------~--~---