Skip to content

Changing Page position for listed pages shows hyphen in panel dropdown #7633

@RM1234567890

Description

@RM1234567890

Description

When I want to change the position of a listed page, the numbered options in the panel dropdown includes a hyphen as the first option that can be selected, please see first screen shot.

If the user selects the hyphen instead of choosing a number, it throws an error, please see second screen shot.

Expected behavior

No hyphen should show up as an option when choosing a position for the listed page.

Screenshots

Image Image

To reproduce

Below is the yaml code for how my pages are set up:

file: work.yml

title: Work
navigation:
  status: all
  template: all
options:
  delete: false
  changeTitle: false
  changeTemplate: false
  changeSlug: false
  changeStatus: false

columns:
  - width: 1/1
    sections:
      drafts:
        headline: Drafts
        type: pages
        # batch: true
        layout: list
        image:
          cover: true
          icon: none
          back: black
        text: '{{ page.title }}, {{ page.year }}'
        info:
        status: drafts
        templates: artwork

  - width: 1/1
    sections:
      published:
        headline: Published
        type: pages
        # batch: true
        layout: cards
        size: medium
        image:
          query: page.featured_image.toFile
          cover: true
          icon: none
          back: black
        text: '{{ page.title }}, {{ page.year }}'
        info: ''
        status: published
        limit: 50

file: artwork.yml

title: Artwork
navigation:
  status: all
  template: all
status:
  draft: Draft
  listed: Published

tabs:
  content:
    label: Content
    icon: page
    columns:
      main:
        width: 3/4
        sections:
          etc etc...

Your setup

Kirby Version
Kirby 5.1.2.

Your system (please complete the following information)

  • Device: Macbook Pro
  • OS: MaxOS 15.6
  • Browser: Chrome
  • Version: 140.0.7339.214

Additional context
listed in the forum here:
https://forum.getkirby.com/t/changing-page-position-for-listed-pages-shows-hyphen-in-panel-dropdown/34880

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions