Filter by Day of Week

More
3 years 5 months ago #80417 by krae
Filter by Day of Week was created by krae
Hello,

I have events happening on the same day every week; for example: there's a concert every Tuesday and Wednesday or a special presentation every Friday.

I need a field where I can choose the DAY of the week, not a specific date, that is filterable and has an initial value of today (be it currently Mon, Tues, Weds).

I managed this with simple checkboxes, but I need the initial filter value to be 'today' and haven't found an easy way to do this.

I also got it to half work with a date picker; the filter displays the week day, but the params in the URL are dates.  So if the user selects this Tuesday and next Tuesday, the filter is specific to that date and there are 2 'Tuesday' options in the filter.

Is this something that is possible?

Thanks

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

More
3 years 5 months ago #80420 by micker
Replied by micker on topic Filter by Day of Week
but you can choose output format for date in filter like php display Y m or just d
that can be ok ?

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.

More
3 years 5 months ago #80424 by krae
Replied by krae on topic Filter by Day of Week
I was able to get the date field filter to appear with the days (Mon, Tues, etc), but it's still technically filtering by date. THe URL specifies the date of the Tuesday or the day selected and the client would have to enter every event on that exact date, which wouldn't be 'dummy-proof'.

example.com/fr/test-page?filter_41=2021-06-30&cc=p

It would be ideal to filter by 0-6 for Sunday to Saturday.

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

More
3 years 5 months ago #80425 by micker
Replied by micker on topic Filter by Day of Week
ah maybe you can create a js script and add it in form
like this (just a proof not a code)
Code:
var daynow = datenow; // format to display in day if daynow = monday{ set valueofield to monday; } else daynow = thesday { set valueofield to thusday; }
you can add a jscode (flexi use jquery) in your specifiq type (edit your type and go to form, you can add css and js)

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