How can I filter a blog view to display only future events?

More
12 years 9 months ago #28757 by ggppdk
this page looks like a PHP error occurred inside you FLEXIcontent template that is why you see a part of the page

-- enable error reporting
-- do a view page source
-- and look at the bottom of the page source

note if you enable error reporting then other PHP notices unrelated to your FLEXIcontent template may appear


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #28790 by grabit
Ok i Found the error that line was wrong
Code:
$enddate = $enddate->format('Ymd');
if I remove it the page display some items but in a weird way still in 4 pages but not complete some are displayed past and future so no rule.

I am a little bit lost and surely not a php programmer :oops: :lol:

An Apple a days keeps the doctor away

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #28798 by ggppdk
the items that have no valid date should be used

maybe try changing:
Code:
if( $now <= $enddate) :
to
Code:
if( $enddate && $now <= $enddate) :


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #28812 by grabit
Well the problem was not there.

I changed the date format in the field to Ymd and now I can see all the films but the future are still there and now the date is not easy to read for the front-end 20130101 in place of 1 january 2013.

I think the problem is somewhere here.

An Apple a days keeps the doctor away

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #28815 by micker
maybe creat a php to display date field in other format ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #28816 by grabit
that is possible but the blog still displays all the films past and future.

An Apple a days keeps the doctor away

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.370 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save