CMS Made Simple Forums
https://forum.cmsmadesimple.org/

LISE - show random/first item
https://forum.cmsmadesimple.org/viewtopic.php?f=7&t=77694
Page 1 of 1

Author:  urheat [ Thu Dec 07, 2017 7:11 am ]
Post subject:  LISE - show random/first item

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 :)

Author:  paulbaker [ Fri Dec 08, 2017 3:33 pm ]
Post subject:  Re: LISE - show random/first item

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"}

Author:  urheat [ Fri Dec 08, 2017 6:43 pm ]
Post subject:  Re: LISE - show random/first item

Thanks paulbaker!

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

Author:  paulbaker [ Fri Dec 08, 2017 8:17 pm ]
Post subject:  Re: LISE - show random/first item

Sorry LISEQuotes is the name of my LISE instance, your name will probably be different.

Author:  urheat [ Sat Dec 09, 2017 8:52 am ]
Post subject:  Re: LISE - show random/first item

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.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/