Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2015-07-10 18:57:45
- pierlu
- Member
- Registered: 2014-08-12
- Posts: 153
Random immagini
Volevo impostare in una pagina del sito un “random immagini” come posso fare? vorrei una volta che mi si aprisse il sito si visualizzasse una foto diversa.
Con Smd Gallery ho scritto:
<txp:smd_gallery
limit=“1” sort=“random”>
<li>
<img src=”{thumburl}” alt=”“ />
</li>
</txp:smd_gallery>
Però non mi sembra di avere ottenuto nulla di che.+
Offline
Re: Random immagini
Try this
<txp:images sort="rand()" limit="1" wraptag="ul" break="li">
<txp:thumbnail />
</txp:images>
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#3 2015-07-10 21:17:21
- pierlu
- Member
- Registered: 2014-08-12
- Posts: 153
Re: Random immagini
Così?
<txp:images sort=“rand(lourdes-2014)” limit=“1” wraptag=“ul” break=“li” />
Offline
Re: Random immagini
<txp:images sort="rand()" limit="1" wraptag="ul" break="li" category="lourdes-2014">
<txp:thumbnail />
</txp:images>
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#5 2015-07-11 09:21:53
- pierlu
- Member
- Registered: 2014-08-12
- Posts: 153
Re: Random immagini
Con il random ogni volta che aprirò il sito mi apparre un img diversa?
Offline
Re: Random immagini
yes, unless your cache prevents it.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#7 2015-07-11 09:49:02
- pierlu
- Member
- Registered: 2014-08-12
- Posts: 153
Re: Random immagini
Wich chache?
Offline
#8 2015-07-11 09:51:40
- pierlu
- Member
- Registered: 2014-08-12
- Posts: 153
Re: Random immagini
Ora il sito è in locale, lo sto aprendo e chiudendo. Ma la foto rimane la solita
Offline
Re: Random immagini
@pierlu – why not translate your question with Google translate before posting? We have to do the same to read your questions. If you need assistance, its good to help us to help you :)
Offline
#10 2015-07-11 11:24:31
- pierlu
- Member
- Registered: 2014-08-12
- Posts: 153
Re: Random immagini
Sorry, the site is now in place, I’m opening and closing the site. But the photo is the usual
Offline
#11 2015-07-11 12:27:45
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,303
Re: Random immagini
pierlu wrote #293078:
Sorry, the site is now in place, I’m opening and closing the site. But the photo is the usual
Like colak already said: Cache might be the problem (browser cache, because you asked). If you’re using Firefox, press cmd-shift-R on your keyboard (Mac) or strg-shift-R (Win). There’ll also be an F-key shortcut for Windows, that I don’t remember, I’m a Mac user. Alternatively, you can also click upon the reload icon at the right inside the address bar field while holding down the shift key on your keyboard (this all is Firefox only).
For emptying or circumventing browser cache in other browsers please google, there’ll be plenty of tips available on the internet.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Offline
Pages: 1