Skip to content

Objects should display on objects page even if toc: false is set #1195

@geealbers

Description

@geealbers

Before proceeding, make sure there isn’t an existing issue for this bug.

  • I have searched the existing issues and determined this is a new bug.

Expected Behavior

If I add toc: false to an entry page with an object, that page should not display in the table-of-contents layout, but should still display in the objects-page layout, as the sortable objects grid is not a TOC.

Actual Behavior

If an entry page with an object is marked as toc: false, the object is hidden from both the table-of-contents and the objects-page.

Steps to Reproduce

  1. Start a new project
  2. Add toc: false to content/catalogue/1.md or content/catalogue/2.md
  3. Run quire preview
  4. Navigate to http://localhost:8080/catalogue/ and note the missing catalogue object

Version Numbers

[test-objects]
 quire-cli 1.0.0-rc.33
 quire-11ty 1.0.0-rc.40
 starter https://github.com/thegetty/quire-starter-default@2.10.0
[System]
 quire-cli 1.0.0-rc.33
 node v22.10.0
 npm 10.9.0
 os Darwin 22.6.0

Web Browser

No response

Relevant Terminal/Shell Output

Supporting Information

The issues stems from this logic in _includes/components/object-filters/objects-catalog.webc that equates the collection for the objects page with the collection for the table of contents page. They need to be separate.

const collection = this.collections.tableOfContentsHtml;

This issue was originally posted in Jira on 12/Jul/24 by @geealbers as DEV-18050.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugActual behavior does not match expected behaviorobjectsIssues related to object pages, data, and filters; commonly used in cataloguesstatus:backlogIssue is a lower priority but needs to eventually be addressed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions