Universal Content Modul: how to display items with date max. -1 year

More
8 years 6 months ago #61750 by pabro
Hi,

i want to display items on FLEXIcontent Universal Content Modul which are created maximum 1 year ago since current date (server). But no matter what settings i am using, the module shows older items of 2011, 2013 and so on …
What settings i must use to get only items with date range from today up to -1 Year ?
Attachments:

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

More
8 years 6 months ago #61817 by ggppdk
Hello

if you have multiple universal module make sure that you edit the correct one
(e.g. unpublish it , does the module disappear ?, i only this to make sure, i am sure that you do not do such mistakes, but i can make such)

now edit file:
D:\xampp\htdocs\devel\flexicontent-cck\modules\mod_flexicontent\helper.ph

and make it print the SQL query:

Find
Code:
if ( empty($items_query) ) { // If a custom query has not been set above then use the default one ... $items_query = 'SELECT '

and add an "echo "
Code:
if ( empty($items_query) ) { // If a custom query has not been set above then use the default one ... echo $items_query = 'SELECT '


-- 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.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.680 seconds
Save
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