• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: LISE - show random/first item
PostPosted: Thu Dec 07, 2017 7:11 am 
Offline
Forum Members
Forum Members

Joined: Sat Oct 17, 2009 6:50 am
Posts: 236
Location: Finland
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 :)


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: LISE - show random/first item
PostPosted: Fri Dec 08, 2017 3:33 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Sat Apr 18, 2009 10:09 pm
Posts: 1417
Location: Maidenhead, UK
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"}

_________________
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


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: LISE - show random/first item
PostPosted: Fri Dec 08, 2017 6:43 pm 
Offline
Forum Members
Forum Members

Joined: Sat Oct 17, 2009 6:50 am
Posts: 236
Location: Finland
Thanks paulbaker!

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


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: LISE - show random/first item
PostPosted: Fri Dec 08, 2017 8:17 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Sat Apr 18, 2009 10:09 pm
Posts: 1417
Location: Maidenhead, UK
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


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: LISE - show random/first item
PostPosted: Sat Dec 09, 2017 8:52 am 
Offline
Forum Members
Forum Members

Joined: Sat Oct 17, 2009 6:50 am
Posts: 236
Location: Finland
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.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: bing, googlebot


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting