Offsetting some news items
Posted
#5030
(In Topic #1126)
Site staff

Posted
Site director

I was going to say it's not possible, but then I realised you could use Filtercode and Tempcode.
Code
{$BLOCK,block=main_news,filter=date_and_time<{$SUBTRACT,{$FROM_TIMESTAMP},604800},fallback_full=10,fallback_archive=0,days=0}
604800 is 1 week in seconds
Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon
- If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
- If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
- If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
- If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Posted
Site staff

Code
{$BLOCK,block=main_news,filter=date_and_time&amp;amp;amp;lt;{$SUBTRACT,{$FROM_TIMESTAMP},604800},fallback_full=10,fallback_archive=0,days=0}&amp;amp;lt;br /&amp;amp;gt;604800 is 1 week in seconds
From “Post #5,031”, 29th September 2018, 9:29 pm
It seems to work – I have just 5 article currently, so it just displays There is no news yet for now.
1 guest and 0 members have just viewed this.

