Place Calendar Navigation above calendar

Created on 1 March 2023, over 1 year ago
Updated 15 March 2023, over 1 year ago

Problem/Motivation

Navigation is appearing below calendar

Steps to Reproduce

Create a Calendar View and set pager to Calendar

Proposed resolution

Allow for placement in pager settings

User interface changes

Allow for placement in pager settings

πŸ’¬ Support request
Status

Fixed

Version

2.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States sgorneau

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @sgorneau
  • Status changed to Fixed over 1 year ago
  • Thank you for asking this.

    I was thinking someone would ask it someday.

    Placement of the navigation is up to you - up to the front end integration.

    The navigation is actually the pager of the View - {{ pager }} in views-view.html.twig.

    We have a template suggestion available for you to override the View template to place the pager whereever you need.

    You should be able to override the View template with a Twig named something like this:

    views-view--style--calendar.html.twig

    ... 
      {# Navigation above calendar #}
      {{ pager }}
    
      {% if rows -%}
        {# Rows = the calendar table #}
        {{ rows }}
      {% elseif empty -%}
        {{ empty }}
      {% endif %}
    ...
    

    I hope you manage to do this change easily!

    Thanks again for using this module.

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

  • Status changed to Fixed over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States sgorneau

    OK, no problem. I was used to D7 where pagers could be placed before, after, or both through the View configuration. The template override worked just fine.

Production build 0.71.5 2024