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.
I'm using a date display in a calendar block, and using insert_view to include that in a page. The navigation doesn't work correctly, seemingly because the arguments aren't passed correctly to the block.
If I hardcode a parameter in the page it works fine, e.g.
[view:training_calendar==2010-01]
But I need it to take the argument from the URL, which looks like this:
?q=node/12&=training-calendar/2010-01/training_event
Is there anyway to inherit the argument from the url in the view tag?
Comments
Comment #1
Pasqualleno, and that url does not even look good..
you can use arguments from url with patch #419880: Various improvements, but it is not an argument in your url example..
I would suggest to render the calendar block, not the view, but I do not know which module are you using exactly..
Comment #2
wally CreditAttribution: wally commentedI've created a new view "training_calendar" of type calendar, with block display, page display, and a date browser display attached to both. It's using the "Calendar" module for the view.
If I link to the view page display directly (?q=training-calendar) then the month navigation works fine, but I want to include it in a page with other content around it.
The way I'm currently doing it the URL looks that way when I click the [next] or [previous] links.
Comment #3
Pasqualleis it still not working?