Problem/Motivation

The config is set to F Y but should be Y m as arg passed as, e.g. 201512

Proposed resolution

Supply patch to yaml file.

Remaining tasks

It seems for month that the argument replaces the "month" arg in path also, this does not happen for week, etc.

e.g. : VIEW_BASE_PATH/month/201512 gets passed as VIEW_BASE_PATH/201512 which is incorrect. Not sure where this happens in code at the moment...

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mccrodp created an issue. See original summary.

mccrodp’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
503 bytes
tedbow’s picture

@mccrodp actually the replacement_format in the validation options is a php date format for the substitution that is used for argument "title".

In places where you can use the argument in Replacement patterns the replacement_format will be used instead of the input. So you would see December 2015 instead of 201512. The templates are using this in the Header area to show the calendar header.

mccrodp’s picture

@tedbow - thanks, I reapplied the patch and it seems it is not working via the views path URL, so seems you are right. However for the event view attached, the Next & Previous links on Month display are providing URLs to "Page Not Found".

E.g: /calendar-field_event_date/201512 & /calendar-field_event_date/201601

Which I imagine should be:

/calendar-field_event_date/month/201512 & /calendar-field_event_date/month/201601

However, these links provide "Page Not Found" also on manually loading them. The args: "201601" do work through the "Update Preview" in the views UI though (which I thought they were not previously, hence the format related patch).

tedbow’s picture

Status: Needs review » Closed (works as designed)

@mccrodp I am pretty sure I know what your "Page not Found" issue is.

In your yaml you have:

 menu:
        type: 'default tab'

The default tab doesn't work excepting arguments now. I don't think this a Calendar issue but rather a Drupal core issue.

I found it a while ago but haven't have time to file a patch.

If you could confirm this on this issue that would be great #2630234: Fix Menu Tabs in Template Views
Details there

mccrodp’s picture

Thanks for the info @tedbow. I did some testing and updated the issue, it looks like a Calendar Pager issue specifically when dealing with "Default Tab", as Views core pager does not seem to have this issue, as I state in #2630234-3: Fix Menu Tabs in Template Views