{"record":{"id":"38451553b39a46ea","repo":"octobercms/october","slug":"cms-display-pages-command-excepts-a-parameter-c","errorCode":null,"errorMessage":"cms:display-pages command excepts a parameter: ${commandObj.fullCommand}","messagePattern":"cms:display-pages command excepts a parameter: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"modules/cms/assets/js/cms.editor.extension.documentcontroller.page.js","lineNumber":59,"sourceCode":"            throw new Error(`cms:sort-pages command excepts a parameter: ${commandObj.fullCommand}`);\n        }\n\n        const pagesNode = this.rootNavigatorNodeSafe;\n        if (!pagesNode) {\n            return;\n        }\n\n        const sortingItem = menuUtils.findMenuItem(pagesNode.topLevelMenuitems, ['sorting'], 'command');\n\n        menuUtils.checkItemInGroup(sortingItem.items, commandObj.fullCommand);\n        pagesNode.sortBy = commandObj.parameter;\n\n        localStorage.setItem('cms-pages-sort-cmd', commandObj.fullCommand);\n    }\n\n    setDisplayMode(commandObj) {\n        if (!commandObj.hasParameter) {\n            throw new Error(`cms:display-pages command excepts a parameter: ${commandObj.fullCommand}`);\n        }\n\n        const pagesNode = this.rootNavigatorNodeSafe;\n        if (!pagesNode) {\n            return;\n        }\n\n        const displayItem = menuUtils.findMenuItem(pagesNode.topLevelMenuitems, ['display'], 'command');\n\n        menuUtils.checkItemInGroup(displayItem.items, commandObj.fullCommand);\n        pagesNode.displayProperty = commandObj.parameter;\n\n        localStorage.setItem('cms-pages-display-cmd', commandObj.fullCommand);\n    }\n\n    groupPages(commandObj) {\n        if (!commandObj.hasParameter) {\n            throw new Error(`cms:group-pages command excepts a parameter: ${commandObj.fullCommand}`);","sourceCodeStart":41,"sourceCodeEnd":77,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/cms/assets/js/cms.editor.extension.documentcontroller.page.js#L41-L77","documentation":"Error \"cms:display-pages command excepts a parameter: ${commandObj.fullCommand}\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/cms/assets/js/cms.editor.extension.documentcontroller.page.js:59 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}