cotonti.com : Random page link on index https://www.cotonti.com Laatste forum onderwerpen Cotonti en Sun, 12 Oct 2025 13:09:43 -0000 Kort Easy:

<!-- BEGIN: MAIN -->
<table>
  <tbody>
<!-- BEGIN: PAGE_ROW -->
    <tr><td>{PAGE_ROW_ID}</td></tr>
<!-- END: PAGE_ROW -->
  </tbody>
</table>
<!-- END: MAIN -->

 

]]>
Ma, 20 Feb 2017 17:02:39 -0000
musashi9 Amazing thanks. How do I get it to show  the 5 in a table/rows

]]>
Di, 14 Feb 2017 14:44:08 -0000
Kort Callback in the template:

{PHP|pagelist('pagelist.random','5','RAND()', '', '', '', 'cat1;cat2')}

Simple template (pagelist.random.tpl):

<!-- BEGIN: MAIN -->
<!-- BEGIN: PAGE_ROW -->
	{PAGE_ROW_ID}
<!-- END: PAGE_ROW -->
<!-- END: MAIN -->

 

]]>
Di, 14 Feb 2017 10:22:22 -0000
musashi9 Ah good stuff, can someone help me config it for my needs?

I would like to show 5 random links from only 2 categories (I dont need pages from ...news,general, ect...)

Is it also possible to only show the page ID name not all the folders before it (instead of General news > page-id=1) Just show page-id=1

Thanks

]]>
Ma, 13 Feb 2017 00:18:02 -0000
Kort Pagelist Plugin

Use it like:

{PHP|pagelist('pagelist.sometpl','1','RAND()')}

... or add parameters to suit your needs

]]>
Zo, 12 Feb 2017 20:53:04 -0000
musashi9 Is there a plugin that shows a random page from the database with a link to it on the index page.

I have over 1000 pages on my site and a nice little random link generator will work wonders.

 

]]>
Zo, 12 Feb 2017 12:25:22 -0000