[Ignore Year finished in r1859] This day in history

More
12 years 1 month ago #42886 by piperchick
I would like to create a "This day in history" module. I have 2 custom fields: DOB (date of birth) and DOD (date of death).

What I would like to do is create a module based on the criteria if today is equal to DOB or DOD.

I had a custom module that worked in J 1.5x and 2.5x but it doesn't work in 3.x. I have tested with the Universal module, which has so many features, I wonder if it is possible.

I appreciate any pointers in the right direction.

Thanks.

Lovin' FLEXIcontent at deadcanadians.ca
Dead Canadians: where are they now?

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

More
11 years 11 months ago #45066 by kenmcd
 
Did you ever get this resolved?
If yes, how did you do it?

 

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

More
11 years 11 months ago #45067 by ggppdk
Hello

i have not see this thread before, i missed it,
i think you can use date SCOPE:

Parameters:

FROM date is: "expression"
TO date is: "expression"

FROM: ADDTIME(CAST(CURDATE() AS DATETIME),'0 00:00:00')
TO: ADDTIME(CAST(CURDATE() AS DATETIME),'0 23:59:59')

Behaviour: "Static ..." (allows expression above)

Date type: "Date Field"
Compare with: ... not used in this case
Date Field: ... select your date field DOB (date of birth)

... you will have to create a second module for DOD (date of death)


-- 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
11 years 11 months ago #45166 by piperchick
Thanks so much for your reply.

I have created the modules, but they only work with today's date. I am not sure what I am missing.

This day in 1919 Sir Wilfrid Laurier died, so I want that to pop up every February 17, not just on February 17, 1919.

Any help refining this would be great!!!

Thanks.

Lovin' FLEXIcontent at deadcanadians.ca
Dead Canadians: where are they now?

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

More
11 years 11 months ago #45171 by ggppdk
Hello

yes, the above will not give you what you asked,

we would need to compare
today's day of year to that "day of year" of custom field,

- we could add some similar to:
"same day"
"same month"
... it will be
"same day, ignore year"
"same month, ignore year"


-- 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
11 years 11 months ago #45195 by ggppdk
Hello

some of the changes to v2.1.3 compared to v2.1.2


1. we have need for this too, and work for it was already partially done,
so 3 new dynamic behaviors for DATE scope were added in r1855:
- same day/week/month but -ignore- Year,


2. plus the DATE scope now has a cleaner/more intuitive configuration

3. (requested by many users ...) also a dynamic custom field SCOPE = list same items that have same field value as the item currently being viewed, e.g. items with same "city" field


these features are not 100% tested yet, do you have a test/copy site for testing these ? otherwise please wait for final release v2.1.3 just even then this new feature may have some bug

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
11 years 11 months ago #45227 by piperchick
I am very keen to try this. I have a test site that I would be very pleased to implement. How do I get my hands on the latest and greatest? 1824 is the latest that I can see on the SVN/download site.

Thanks!

Lovin' FLEXIcontent at deadcanadians.ca
Dead Canadians: where are they now?

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

More
11 years 11 months ago #45258 by ggppdk
Hello

it is now,
in our "Latest download" menu item,

still called "beta" though, (to be tested)
= better for using it in new sites, or site not using FC already,

thus an official announcement will follow in 10 or more days


-- 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
11 years 11 months ago #45267 by piperchick
Thanks very much for this. These will be useful features for me.

I have tested the Date Scope and the dynamic behaviours only work for the current year (2014). This includes the selection that says Same day/week/month ignore year.

I am happy to test, so if there is a better place to report my findings, please let me know.

Thanks.

Lovin' FLEXIcontent at deadcanadians.ca
Dead Canadians: where are they now?

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

More
11 years 11 months ago #45314 by ggppdk
Hello

that is normal the other DATE SCOPE dynamice behaviors do comparisons (e.g. same year) that are not supposed to ignore year

about the 3 "ignore year" behaviors, as i said it is a new untested feature, now i have tested and fixed:

-- in v2.1.3 final or in next beta, there will be these:

"Dynamic Behaviour (ignore year)"
  • "Same day of month (1-31)"
  • "[-3,+4] days of month"
  • "Same week of month (1, 4)"
  • "Same week of year (1-53)"
  • "Same month of year (1-12)"

"Dynamic Behaviour (ignore month / year)"
  • "Same day of month (1-31)"
  • "[-3,+4] days of month"
  • "Same week of month (1, 4)"

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.

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