Expression Engine Calendar using date field - calendar

I'm building a site using the exp:channel:calendar tag and would like to use a date field to add entries to the calendar rather then the publish date for the entry. I can't find any talk of this anywhere, is it possible? How would I go about doing it?

Two options:
Just move the Entry Date filed into your custom publish layout in place of your custom date field.
Use the EEvent Helper add-on, which allows you to clone the value of a custom date field to the Entry Date when publishing or updating an entry.

Related

Fullcalendar time issue

I am using fullcalendar in Salesforce.
There is this custom form created in salesforce in which user enter date and time in custom field which further creates a event in calendar on the specified date from form.
The issue is when I create event using agendaweek it saves the record using form for the specified date and time but when switching to month view and on manually adding the time it saves the event in calendar 5:30 hours behind.
I consoled output
End_Date_time__c":"2021-05-10T06:30:00.000Z","Start_Date_time__c":"2021-05-10T05:30:00.000Z"
I tried solving this issue by changing the timzone using following line which allows me to save as per the requirement but it changes the timezone of agendaweek making it 5:30 hours ahead because of the below specified line.
josnArr[i].start = new Date(josnArr[i].start).toLocaleString(undefined, {timeZone: 'Asia/Kolkata'});
If anyone could please suggest something.This is the form which I have used to create records in calendar.

How to create ssr in reactjs

I'm trying to code a date picker using ReactJS but I don't know how to create a dynamic table that displays the actual month days every time I hit previous or next buttons. Here's my code: // Next step I need to add a matrix of weekdays (1..31) and check each month existing ...
I wouldn't reinvent a wheel unless it's unavoidable.
There are multiple date pickers that can be used out of the box:
E.g.:
https://www.npmjs.com/package/react-date-picker
https://www.npmjs.com/package/react-datepicker
https://react-day-picker.js.org/
But that's only if you just need any picker. If you must create a custom one, then this doesn't help.

How to create custom time field in salesforce custom object?

want to create a time custom time field .. how it is possible ?
Advance thanks
I suggest you look through Creating Custom Objects and Fields. It should help you with current question and future ones.
It is very simple. If you have already created a custom object in its detail page you can add custom fields.
And if you want your date field to be populated automatically, just create it as a formula field and use already predefined function DATE.

How to manually set a dynamic default field value in Django forms?

I am trying to create a form where the default date field value should be changed from time to time.
I have created a model with the two field values. I intend to change these fields from time to time for thousand of pages. If i can do this in the admin panel once for all the pages then i get a little stress off.
{default_start_date and default_end_date}
i would like to have these fields called as the page loads to be the default values for two other fields
{start_date and end_date}
My question i dont know how i can do this? Django or Java Script? or Both?
You could do this using a django model and its corresponding admin interface:
class DateRange(models.Model):
start_date = models.DateField()
end_date = models.DateField()
admin.site.register(Author)
This would let you adjust the DateField in the admin. It also lets you call the current value of DateRange.objects.all()[0].start_date wherever you need that in your app/templates.

drupal 7 create a views block that displays based on date range of current node

I've searched for days and not found a clear answer for this.
I'd say I'm intermediate with Drupal (at best). I'm using Views, Panels, CCK, and the Date modules (among others, that may not relate to this question)
I've got a content type of Shows (plays), that has a date range field (from the date module) that is the run date of the show.
I've got 3 views blocks that I filter using the Content: Show Dates - start date and Content: Show Dates - end date fields. These display a list (links) to shows that are of 3 categories, now playing, upcoming, and past shows. They work fine.
Now for the tricky part (for me). I want Panels (Node rewrite for Shows) to decide which one to display in the sidebar while looking at a Content:Show based on whether it is currently running, yet to run, or in the past.
What are the steps to make this happen?
thanks!
jason
Edit: I'm working with Blocks too.
I would suggest to create 3 views (not necessary blocks if you have enabled the "Views content pane" module), one for each date option with a nid as Contextual filter and a display of Content:Node. Then add all the 3 views in one panel page variant one after another. Probably you already have these blocks. So you can clone them and just add a nid Contextual filter.
Another option is to create 3 different variants for the same node type and add a Selection Rule for the Show Date field (Selection Rules screencast). If there are no filters for the date field add some php code. Here is an example.

Resources