45 Posts
Sven
7 years ago
Topic

Hello,

I created a list and search type to display a list of news articles. This list and search type is used on several pages of my website. 

I want to control how long certain news articles get displayed on the homepage and created the following:
The form of the news articles has a date field called "publish_end_frontpage" which should control how long an article gets displayed on the frontpage. 

I wanted to use the override Live / Variation filters of the list & search menu item of the homepage to filter the news articles: I only want to display news articles with an empty "publish_end_frontpage" value or a date value in the future. 

Is it possible to use the Live-field of my menu item this way? 

Thanks in advance. 

Sven

Get a VIP membership
1283 Posts
Bucklash
7 years ago
0
Level 1

Hi

The menu item requires actual values rather than a variable or dynamic value.

I think you would need to create a specific List & Search type for this functiona

4229 Posts
Kadministrator
7 years ago
1
Level 1

Hi, not sure whether it works on live menu overrides but on normal live values you can use words like NOW or TODAY

45 Posts
Sven
7 years ago
0
Level 2

Hi Klas, thanks for your answer!

Yes, it works to use words like NOW or TODAY in the live menu overrides.
But I don't know if it's possible to only display articles if their date is in the future OR if the value is empty. I need to check for two conditions.

Do you know if and how this is possible in a list and search type?

4229 Posts
Kadministrator
7 years ago
1
Level 1

You should be able do this using Search query and Search operator plugins to add OR .. to WHERE part of query for when your value is empty.

45 Posts
Sven
7 years ago
0
Level 2

Thanks! Using the Search query plugin worked fine for me.

Get a Book for SEBLOD