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
LISE - show random/first item
- paulbaker
- Dev Team Member
- Posts: 1465
- Joined: Sat Apr 18, 2009 10:09 pm
- Location: Maidenhead, UK
- Contact:
Re: LISE - show random/first item
Try:urheat wrote:Show randomly one item from a specific category
{LISEQuotes action="default" category="general" orderby="rand" pagelimit="1"}
Try:urheat wrote:Show the first item from a specific category
{LISEQuotes action="default" category="general" pagelimit="1"}
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation
CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
https://docs.cmsmadesimple.org/troubles ... nformation
CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
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.
I assume I have to have LiseQuotes module (unknown tag "LISEQuotes"), but I can't find the one from the module manager.
- paulbaker
- Dev Team Member
- Posts: 1465
- Joined: Sat Apr 18, 2009 10:09 pm
- Location: Maidenhead, UK
- Contact:
Re: LISE - show random/first item
Sorry LISEQuotes is the name of my LISE instance, your name will probably be different.
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation
CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
https://docs.cmsmadesimple.org/troubles ... nformation
CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
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.
Works perfectly - Thanks!
p.s. Can't add [solved] 'cause I can't edit the topic for ever reason.