Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 02:22:21 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155539 Posts in 21712 Topics by 7737 Members
Latest Member: deanmacullam
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Show News items max x times  (Read 241 times)
micsu

Offline Offline

Posts: 10


« on: August 24, 2010, 07:14:35 AM »

I'm using news module but there are some news that only should be seen some specified times.
I've made my own news listing block with type code block so it works fine. I was just wondering if someone has been on a news article before and got the direct url for it but the article is set as inactive, person sees just the text "Sorry, no active content to display".

Is it possible to make it automatically redirect to main news page from inactive articles?

I've already tried it with just code block reading the article from database and checking active, published_when and published_until columns but is there any easier way?
« Last Edit: August 24, 2010, 09:50:53 AM by Argos » Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!