RANDOM PAGE? How to get it?

10 views
Skip to first unread message

zen

unread,
Dec 22, 2008, 1:26:29 PM12/22/08
to TiddlyWiki
Hi can someone please tell me what I need to write in my side-menu to
get a random page link?!
can't find it anywhere!
most grateful!

Nicolas Syssoieff

unread,
Dec 22, 2008, 1:49:03 PM12/22/08
to Tiddl...@googlegroups.com
Hi zen,

You could use Eric's QuoteOfTheDayPlugin (http://www.tiddlytools.com#QuoteOfTheDayPlugin) to achieve this functionality.

Enjoy !
Nicolas

zen

unread,
Dec 22, 2008, 5:48:41 PM12/22/08
to TiddlyWiki
Thanks nicolas....But the page doesn't say

1. where do i put that code?
2. what do i put on the other page to activate the code?

lol the people who (very generously) create these things often seem to
assume we'll just know what to do with them!
It's a shame, because I'm sure many more people could use their good
efforts if it was all just a little clearer

zen

unread,
Dec 22, 2008, 5:49:05 PM12/22/08
to TiddlyWiki
I'm also very open to hearing from someone who has a more exact random
page...

Nicolas Syssoieff

unread,
Dec 22, 2008, 7:02:45 PM12/22/08
to Tiddl...@googlegroups.com
Hello again Zen,

1. QuoteOfTheDayPlugin is a... plugin, so it works as every plugin in TiddlyWiki, you'll have to import the entire plugin inside your TiddlyWiki document.
If this is the first time you're actually adding a plugin, you might find some useful information in the knowledge base here : http://tiddlywiki.org/wiki/Plugins

2. Regarding what to put in the side menu, you'll find that there is a documentation for this plugin (referenced on line 3 of the plugin itself).
It can be found here : http://www.tiddlytools.com/#QuoteOfTheDayPluginInfo
And it will provide you with detailed instructions on what to put in the side menu to fulfil your goals.

Also, note that the main feature of what you are requesting is the "random" page link. QuoteOfTheDayPlugin, though not initially designed for serving links but quotes (and even then, quotes could be links), fulfils exactly what you are trying to achieve.

Enjoy !
Nicolas

Eric Shulman

unread,
Dec 22, 2008, 7:08:35 PM12/22/08
to TiddlyWiki
> 1. where do i put that code?

To install a plugin, use the backstage>import command to add the
entire tiddler to your document. Make sure to copy ALL of the tiddler
content, not just the 'code' section, and also make sure that your
copy is properly tagged (plugins must be tagged with 'systemConfig'.
Then, you need to save-and-reload the document for the newly imported
plugin to take effect.

In this case, installing the [[QuoteOfTheDayPlugin]] adds a new macro
<<QOTD>> to the available syntax in your document. The full syntax
for the macro is defined in the plugin documentation (see
[[QuoteOfTheDayPluginInfo]])

> 2. what do i put on the other page to activate the code?

By 'other page', I assume you mean the [[MainMenu]] tiddler (or other
tiddler in which you want the 'random link' to appear)... if this is
the case, open the MainMenu tiddler (see the More>Shadowed tab in the
right sidebar) and edit it. Add the following:

<<QOTD MyLinks>>

Then, create another tiddler called [[MyLinks]], containing all the
links you want to pick from, separated by "horizontal rule" lines
("----"), like this:

[[sometext|someurl]]
----
[[sometext|someurl]]
----
[[sometext|someurl]]
----
[[sometext|someurl]]


That's it. Each time the MainMenu is rendered (i.e., when you load
your document) the <<QOTD MyLinks>> macro will randomly select one of
the links listed in [[MyLinks]] and insert it into the MainMenu
display. QED.

HTH,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

zen

unread,
Dec 22, 2008, 7:41:25 PM12/22/08
to TiddlyWiki
thanks guys!
v generous of you!

i will try these things!

Reply all
Reply to author
Forward
0 new messages