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

More
12 years 9 months ago #28155 by grabit
Hi,

I have to create a menu item to display automatically in a blog view only items from one category and all child categories where the specific date field is newer than today (not yet released).

How can I do that?

Joomla 2.5.6
Flexicontent 2.0 RC8 r1461

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 #28156 by ggppdk
Such "Scoping" capabilities is currently only available via Universal module


-- 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 #28158 by grabit
I understand that it is not possible with a menu choice but how can I select the items on a blog?

If it is possible in the module it must be possible in a blog view with a query?

By the way I must sort the releases by date and the module can't do that for the moment.

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 #28166 by ggppdk
I ll check and add sorting by custom field to FLEXIcontent module, as this quite useful


-- 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 #28626 by grabit
I will explain my needs to everybody so maybe someone have a bright idea to help me.

In my category (films), I have all the film distributed past, present and future.

The date of the release is stored is a date field called release

In my blog I would like to show only the present and past items (about 98% of the category) and at the bottom of the blog I have a Flexicontent module with a scope on the release field to show the future releases.

GGPPDK propose me to use the module for the past releases too.

But I will have pages and the module can't do that.

All suggestions are welcome.

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 #28632 by micker
hello i do it in categorie_item.php
put you date field in renderonly
and use this in code
after
Code:
$tmpl = $this->tmpl;
put
Code:
$now = new DateTime(); $now = $now->format('Ymd');
and after
Code:
<ul class="leadingblock"> <?php for ($i=0; $i<$leadnum; $i++) : $enddate = $items[$i]->fields['Dfin']->display; $enddate = new DateTime($enddate); $enddate = $enddate->format('Ymd'); $now = date('Ymd', strtotime('+1 day')); if( $now <= $enddate) : ?>
where Dfin is your name field
regards

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.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.418 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