I´m not sure if this issue belongs to calendar or date or both or...

The "Add+" in the calendar view opens a new date form as supposed.
But as the link from which the "Add+" link was hit is containing the date itself (.../node/add/termin?destination=calendar-datum/2009-03-13) i expected it to prepopulate the datefield in the new node, which it doesn´t do.
It´s rather todays date, and when i change it in the datefield setting to empty, its simply emtpy.

So,
1. am i right, that it´s supposed to prepopulate the news nodes datefield?
2. might it be that it doesn´t work, cause i changed date settings to my german timeformats?
3. can i and how can i tweak things, so my new datefields get prepoulted with the date it was triggered from?

I generated everything through the date wizard in two different setups, and in both it doesn´t work as expected.

Cheers
bernd

CommentFileSizeAuthor
#4 date_destination.patch2.34 KBCainan

Comments

karens’s picture

Status: Active » Fixed

It is not intended to prepopulate anything, just to bring up an edit form. The code you see is to return you back to the calendar page you started on. There is already a request somewhere to automatically set a specific date, but that is not implemented.

Anonymous’s picture

thanx for your answer.
i think it would make sense when there already exists that link for creating a date on a day view, that this would be handed over to save some extra work. (little usability improvement), but actually i can live without it so far.

thanx for those great modules!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Cainan’s picture

Version: 6.x-2.x-dev » 6.x-2.2
Assigned: Unassigned » Cainan
Status: Closed (fixed) » Needs review
StatusFileSize
new2.34 KB

Ran into this myself. a lot of the users on my site expect the Add+ link to set the form to teh date they clicked to get to it.

The following patch adds a date format of 'destination' which uses the drupal_get_destination() or defaults to 'now'

This patch is against 6.2x-2.2

karens’s picture

Title: Add new date link (Add+): Not pre-populating date field in new node » Add new date link (Add+): Pre-populate date field in new node
Category: support » feature
Status: Needs review » Needs work

This is an interesting idea, but if the field has been set up to default to 'now' or to 'blank', this will override that default value. I'm not sure whether or not that's desirable behavior. We may want to make this configurable somehow. I'll let others chime in on this idea and test it.

Cainan’s picture

You'll notice my patch adds a new field setting called 'Destination String'. To get this behavior, the user has to choose it.
That way, its completely a user tradeoff if they want this behavior

Cainan’s picture

Status: Needs work » Needs review

changing status.

Cainan’s picture

Assigned: Cainan » Unassigned
AdrianB’s picture

This was never implemented?

Renee S’s picture

Did this ever make it anywhere? Awesome UI improvement and much needed.

developer-x’s picture

You can do this with the Prepopulate module and some template tweaking. Check out http://drupal.org/node/916448#comment-3566032 - I did this for each individual date box on the calendar - but it applies to the Date nav template as well.

damienmckenna’s picture

Component: Date CCK Field » Code
Issue summary: View changes
Status: Needs review » Closed (won't fix)

Unfortunately the D6 version of this module is no longer supported, but we appreciate the time you put into this. If this problem is relevant for D7 too, please reopen the issue. Thanks.