We have an email notification system -
We have users subscribe to a particular event user, when that user posts a new event - all of the users who subscribe to him receive an email notification that he has posted a new event.
Is there a way to email a link to go directly to the day or directly to the even in the scheduler?
Hi,
there are two possible approaches
- You can do it using a client side extension:
var scheduler = new DHXScheduler(this);
scheduler.Extensions.Add(SchedulerExtensions.Extension.Url);
And then generate links like following: “/calendar/index#event=eventId”
Please check the demo: s3.amazonaws.com/uploads.hipcha … ension.zip
- or you can do it on server. If you add an id of target event to url query string - “/calendar/index?eventId=eventId”
Then during initialization of a scheduler you could get that event from the db and use it start date as InitialDate of scheduler, i.e.
[code]public ActionResult Index(string eventId)
{
var scheduler = new DHXScheduler(this);
var initialDate = DateTime.Today;
if (!string.IsNullOrEmpty(eventId))
{
var activeEvent = ...get event from db;
initialDate = activeEvent.start_date;
}
scheduler.InitialDate = initialDate;[/code]