> How can I add some if condition in a tiddler to be able to view the
> page properly all the time?
> something like
> if(readOnly) <<rssReader noDesc proxy.php?url=URL>>
> else
There are several ways to do this. One method is to use an inline
script.
First, install
http://www.TiddlyTools.com/#InlineJavascriptPlugin
Then, put the following in your tiddler content:
<script>
if (document.location.protocol="http:")
return "<<rssReader noDesc proxy.php?url=URL>>"
else
return "<<rssReader noDesc URL>>"
</script>
Whatever text is returned by the script is automatically "wikified",
causing the appropriate macro to be rendered, based on the current
document location.
Note: checking 'readOnly' can't be used to *reliably* identify when
your document is online, since this setting can be changed in
[[AdvancedOptions]]: clear the "Hide editing features over HTTP"
checkbox and reload the document... it will no longer be in 'readOnly'
mode.
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios