Page 1 of 1

LISE - show random/first item

Posted: Thu Dec 07, 2017 7:11 am
by urheat
Hi,

I would like to list one LISE item in two different ways:

1)
Show randomly one item from a specific category

2)
Show the first item from a specific category

Thanks :)

Re: LISE - show random/first item

Posted: Fri Dec 08, 2017 3:33 pm
by paulbaker
urheat wrote:Show randomly one item from a specific category
Try:
{LISEQuotes action="default" category="general" orderby="rand" pagelimit="1"}
urheat wrote:Show the first item from a specific category
Try:
{LISEQuotes action="default" category="general" pagelimit="1"}

Re: LISE - show random/first item

Posted: Fri Dec 08, 2017 6:43 pm
by urheat
Thanks paulbaker!

I assume I have to have LiseQuotes module (unknown tag "LISEQuotes"), but I can't find the one from the module manager.

Re: LISE - show random/first item

Posted: Fri Dec 08, 2017 8:17 pm
by paulbaker
Sorry LISEQuotes is the name of my LISE instance, your name will probably be different.

Re: LISE - show random/first item

Posted: Sat Dec 09, 2017 8:52 am
by urheat
Haha - i feel ashamed ;) Got carried away when I tried to google this and found this: viewtopic.php?f=7&t=75698

Works perfectly - Thanks!


p.s. Can't add [solved] 'cause I can't edit the topic for ever reason.