Neo Posted May 29, 2016 Share Posted May 29, 2016 I could not find a related post to this issue: I am dealing with the development of a banner advertising solution for a website, i.e. the website will show different rotating banners at different positions. A convenient way would be to use the repeater field. Not sure if it would be better to work with pages due to the possible size of the website (performance limitations ?!?). Now, the idea is to keep a specific banner within this repeater published for a specific time, e.g. 1 week, 1 month, 3 months. Once a banner has been added to the repeater and the publishing time has been selected, publication time is counted and the banner is automatically "unpublished", but not deleted after this time. Would appreciate your advice if this is possible. Link to comment Share on other sites More sharing options...
Ivan Gretsky Posted May 29, 2016 Share Posted May 29, 2016 Hallo Neo! Follow the white rabbit. 1) Pages scale much better that repeaters. So if you will have really lot of banners you better use pages. Or consider commercial Repeater Matrix field. 2) You do not have to unpublish your banners. You can just add a datetime field and name it something like show_until. Then in the code just use this field in the selector and choose only pages that have show_until field value less than today. 3) If you really need to unpublish those pages you can use Lazy Cron module. 4 Link to comment Share on other sites More sharing options...
kongondo Posted May 29, 2016 Share Posted May 29, 2016 You also have the module SchedulePages (that works with Lazy Cron) if you want to auto-publish/unpublish pages... 4 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now