Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Dear all,
in calendar view -> Tab; Calendar page -> Section: Calendar settings
One can choose a content type for an "Add new date link". It would be really convenient if the date in the destination content type would be prepopulated in the date field.
Maybe some code can be taken from the prepopulate module?
What do you think? Thanks,
nhck
Comments
Comment #1
curtaindog CreditAttribution: curtaindog commentedWith the aid of the http://drupal.org/project/prepopulate module I used a bit of javascript in the view footer to allow users to click on empty areas in the monthly calendar to add events on that day. It's pretty rough and should be run through the php filter so that I can weed out the unauthorised (they'll get 403'd anyway so I'm not that concerned) but works well enough as a proof of concept.
Hope this helps.
Comment #2
developer-x CreditAttribution: developer-x commentedI do a similar approach with the prepopulate module. I've documented this approach in the following issue http://drupal.org/node/916448#comment-3566032
Comment #3
curtaindog CreditAttribution: curtaindog commentedNice one, developer-x. A template-based solution such as yours would be better than the one I posted, but I must admit that theming calendars has caused me grief in the past so I steered clear.
Comment #4
Artusamak6.x is entirely unmaintained.