Custom Date Scope

More
13 years 7 months ago #27029 by igcorreia
Custom Date Scope was created by igcorreia
I want to show all articles from TODAY,

so from 00:01 up to 23:59 of today ,

What code do I need to add to the Date Scope?

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

More
13 years 7 months ago #27030 by igcorreia
Replied by igcorreia on topic Custom Date Scope
actually I need hours also.

so -1 d 20:00 h until 0 d 20:00 h

Is something like this possible?

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

More
13 years 7 months ago #27031 by ggppdk
Replied by ggppdk on topic Custom Date Scope

algardata wrote: I want to show all articles from TODAY,
so from 00:01 up to 23:59 of today ,
What code do I need to add to the Date Scope?

To show articles from today UTC TIME!!,
the following should work in the FROM/TO parameters of Date Scope:
FROM: 0 d
TO: 0 d

algardata wrote: actually I need hours also.
so -1 d 20:00 h until 0 d 20:00 h
Is something like this possible?

You can not,
because strings you enter in FROM and TO dates are quoted, i will see to add some option to remove quotes. If we remove quotes then you could (UTC times always):

FROM: ADDTIME( CAST(ADDDATE(CURDATE(), -1) AS DATETIME) ,"0 20:00:00")
TO: ADDTIME( CAST(CURDATE() AS DATETIME),"0 20:00:00")


-- 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 review. Thanks!

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

More
13 years 7 months ago #27032 by igcorreia
Replied by igcorreia on topic Custom Date Scope
So if I remove the quotes in the module and put does codes it should work? or the quotes is not in the module to change?

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

More
13 years 7 months ago #27034 by ggppdk
Replied by ggppdk on topic Custom Date Scope
mmm, this useful,

i have added/tested 2 parameters for using begin and end date as raw unquoted values,
will be in next commit , watch SVN and grab the changed files of the 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 review. Thanks!

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

More
13 years 7 months ago #27035 by igcorreia
Replied by igcorreia on topic Custom Date Scope
For sure. Thanks.

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

More
13 years 7 months ago #27065 by ggppdk
Replied by ggppdk on topic Custom Date Scope
I have update my previous post to better answer your questions.

I also added better description and details in the date SCOPE.

and in r1399 added support for custom Date field, had planned for this since we added support for Related fields of current item in the ITEMS SCOPE

Regards


-- 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 review. Thanks!

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

More
13 years 7 months ago #27067 by igcorreia
Replied by igcorreia on topic Custom Date Scope
:D

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

More
13 years 7 months ago #27075 by micker
Replied by micker on topic Custom Date Scope
great !!!!

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