Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-08-31 14:30:20

WhiteDog
Member
From: Maine
Registered: 2005-09-07
Posts: 174

Random presentation of articles

Is it possible to have articles from a specific category appear in a random presentation instead of in an ascending or descending order.

If so how would I do it?

Or would it be possible to have a random presentation of thumbnails from a particular image category, and have those thumbnails produce popups to a full size of the thumb.

Thanks in advance

Last edited by WhiteDog (2006-08-31 14:33:33)


Grrr RRR nnndth grrr Skeek!

Offline

#2 2006-08-31 14:39:28

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Random presentation of articles

Is sortby="rand()" what you’re looking for?

Offline

#3 2006-08-31 14:55:07

WhiteDog
Member
From: Maine
Registered: 2005-09-07
Posts: 174

Re: Random presentation of articles

Oh my gosh you are brilliant! Thank you that is exactly what I needed!

so could I also do this?
txp:image category=“stuff” sortby=“rand()” / or

preferably this
txp:upm_image type=“popup” image_id=“rand()” class=“image” show_width=“no” show_height=“no” /


Grrr RRR nnndth grrr Skeek!

Offline

#4 2006-08-31 16:24:11

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Random presentation of articles

txp:image is for displaying one image only. You would need txp:image_index or one of the plugins.
I don’t know upm_image, the help text for the plugin will probably tell you if it takes a sortby attribute.

Offline

#5 2006-09-01 15:10:48

WhiteDog
Member
From: Maine
Registered: 2005-09-07
Posts: 174

Re: Random presentation of articles

Thank you!


Grrr RRR nnndth grrr Skeek!

Offline

#6 2006-09-01 15:32:02

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,125
Website GitHub

Re: Random presentation of articles

I didn’t read what you said, just watched the dogs chit-chatting :-)


TXP Builders – finely-crafted code, design and txp

Offline

#7 2006-09-01 16:22:17

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Random presentation of articles

LOL, I hadn’t even noticed that :)

Offline

Board footer

Powered by FluxBB