<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
The Cookbook recipe randomsection will probably do what you want. Some
use it for quotes. I use it for random banners. You just put the
various text (or banners) you want to display after an anchor. It uses
an (:include {banners$RandomSection}:). You can use it in group footer
to get it on every page in a group, or just individual pages. <br>
<br>
[] Jamie wrote:
<blockquote cite="mid46064F19.3070800@gmail.com" type="cite">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
I wondered if there is a recipe for randomising extracts of page
content? On my wiki home page I'd like to insert a box taking up a
quarter of the page, or half a paragraph, which text wrapping round it,
and for the recipe to grab the first three lines or so of a random
page. That way whenever a visitor hits the home page they see a
bordered box with constantly changing content. <br>
<br>
If I've not explained that very clearly then please take a look at the
homepage to my website (not the wiki). If you hit refresh you'll see
that the image, the quote in the top right and the 'Random Log Entry'
all change every time the page refreshes. It's a lazy way of making the
page look dynamic I guess.<br>
<br>
As an adjunct to this I wondered if there is a way of including only an
extract of a page, rather than the whole page?<br>
<br>
Any ideas?<br>
<br>
Thanks,<br>
<br>
Jamie<br>
<pre class="moz-signature" cols="72">[] <a
class="moz-txt-link-abbreviated" href="http://www.followtheboat.com">www.followtheboat.com</a> []
* tales from the high seas *</pre>
<br>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
pmwiki-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a>
<a class="moz-txt-link-freetext" href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a>
</pre>
<pre wrap="">
<hr size="4" width="90%">
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.17/731 - Release Date: 3/23/2007 3:27 PM
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Always, Dr Fred C
<a class="moz-txt-link-abbreviated" href="mailto:drfredc@drfredc.com">drfredc@drfredc.com</a></pre>
</body>
</html>