<div dir="ltr"><div><div><div><div>Thanks Stef, This seems to work perfectly.<br><br></div>In testing it, found some overlooked pages that needed work, and that prompted attention to other needed changes (planned anyway). I will set up the random page generator in the sidebar when I am more confident of the overall quality of pages.<br><br></div>BTW, random page is something I used to think was a sort of time waster or at best a way to get a quick sense of what a wiki was about. However it turned out to be really useful when I wanted to review Bambara on the multilingual <a href="http://fr.wiktionary.org">fr.wiktionary.org</a> (random page by language - a feature that <a href="http://en.wiktionary.org">en.wiktionary.org</a> also has but does not highlight). So it actually can be a way to quiz oneself on, or do extensive random sampling of, the contents of wikis. I anticipate that some users of the wiki I'm working on recovering will do the latter.<br><br></div>All the best,<br><br></div>Don<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 25, 2015 at 8:25 PM, StefCT <span dir="ltr"><<a href="mailto:stefct4@gmail.com" target="_blank">stefct4@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Regarding my last e-mail, for clarification, the entire code (to be used<br>
in the SideBar) should look like this:<br>
<span class=""><br>
(:pagelist group=PmWiki order=random count=1 fmt=Site.SideBar#randomPage<br>
list=normal:)<br>
<br>
</span><span class="">(:if false:)<br>
[[#randomPage]]<br>
[[{=$FullName}|Show random page]]<br>
[[#randomPageend]]<br>
(:ifend:)<br>
<br>
</span>Stef<br>
<span class="im HOEnZb"><br>
<br>
On 10/26/2015 01:16 AM, StefCT wrote:<br>
> Hi Don,<br>
><br>
> On 10/26/2015 12:26 AM, Donald Z. Osborn wrote:<br>
>> Thank you. This works great - at least the first time. Adding it to sidebar<br>
>> (my aim) seems complicated.<br>
>><br>
</span><div class="HOEnZb"><div class="h5">> If you are using the code in the SideBar, you probably need to change<br>
> the first line to:<br>
><br>
> (:pagelist group=PmWiki order=random count=1 fmt=Site.SideBar#randomPage<br>
> list=normal:)<br>
><br>
> Otherwise PmWiki will be unable to find the page list template named<br>
> "randomPage".<br>
><br>
> Does this solution work? In my wiki, it works fine.<br>
><br>
> Stef<br>
><br>
><br>
><br>
>><br>
>> On Sun, Oct 25, 2015 at 5:49 PM, StefCT <<a href="mailto:stefct4@gmail.com">stefct4@gmail.com</a>> wrote:<br>
>><br>
>>> On 10/25/2015 10:30 PM, StefCT wrote:<br>
>>><br>
>>>><br>
>>>> On 10/25/2015 10:14 PM, Donald Z. Osborn wrote:<br>
>>>>> Greeetings, Is there a way to generate (call up and open) random pages<br>
>>> in<br>
>>>>> the same way MediaWiki does?<br>
>>>><br>
>>>> How about<br>
>>>><br>
>>>> (:pagelist group=PmWiki order=random count=1 fmt=#redirectto<br>
>>> list=normal:)<br>
>>>><br>
>>>> (:if false:)<br>
>>>> [[#redirectto]]<br>
>>>> (:redirect {=$FullName}:)<br>
>>>> [[#redirecttoend]]<br>
>>>> (:ifend:)<br>
>>><br>
>>><br>
>>> Actually, there is a solution maybe even easier than my first<br>
>>> suggestion... You could also skip the redirect and try:<br>
>>><br>
>>> (:pagelist group=PmWiki order=random count=1 fmt=#randomPage list=normal:)<br>
>>><br>
>>> (:if false:)<br>
>>> [[#randomPage]]<br>
>>> [[{=$FullName}|Show random page]]<br>
>>> [[#randomPageend]]<br>
>>> (:ifend:)<br>
>>><br>
>>> This markup will display a link "Show random page". This link will lead<br>
>>> to a different page from the group "PmWiki" each time you reload the<br>
>>> page containing the link.<br>
>>><br>
>>> Kind regards,<br>
>>><br>
>>> StefCT<br>
>>><br>
>>><br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> pmwiki-users mailing list<br>
>>> <a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>
>>> <a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" rel="noreferrer" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
>>><br>
>><br>
><br>
<br>
</div></div></blockquote></div><br></div>