{"id":19167057,"url":"https://github.com/psmb/psmb.createnodebutton","last_synced_at":"2025-07-20T12:06:17.961Z","repository":{"id":38418602,"uuid":"59836505","full_name":"psmb/Psmb.CreateNodeButton","owner":"psmb","description":"Create nodes in Neos even without the page tree...","archived":false,"fork":false,"pushed_at":"2022-12-07T07:28:25.000Z","size":2547,"stargazers_count":15,"open_issues_count":17,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-29T07:42:25.431Z","etag":null,"topics":["neoscms"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/psmb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-27T13:31:47.000Z","updated_at":"2022-07-20T07:56:09.000Z","dependencies_parsed_at":"2023-01-24T14:01:20.652Z","dependency_job_id":null,"html_url":"https://github.com/psmb/Psmb.CreateNodeButton","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/psmb/Psmb.CreateNodeButton","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psmb%2FPsmb.CreateNodeButton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psmb%2FPsmb.CreateNodeButton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psmb%2FPsmb.CreateNodeButton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psmb%2FPsmb.CreateNodeButton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/psmb","download_url":"https://codeload.github.com/psmb/Psmb.CreateNodeButton/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psmb%2FPsmb.CreateNodeButton/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266120452,"owners_count":23879322,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["neoscms"],"created_at":"2024-11-09T09:35:37.742Z","updated_at":"2025-07-20T12:06:17.936Z","avatar_url":"https://github.com/psmb.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Psmb.CreateNodeButton\nCreate nodes in Neos even without using the tree...\n\nSometimes you have all of your nodes stored under one node and ordered by date (e.g. news nodes).\nUsing the tree for adding nodes doesn't make any sense, as it gets painfully slow with a lot of nodes,\nand you have to manually select the correct position for the new node, which is error-prone.\nThis package provides an inspector view (for the new Neos UI) and `Psmb.CreateNodeButton:CreateNodeButton` Fusion object\n(for the old UI), which allow you to create nodes in a predefined position in one click of a button.\n\n```\ncomposer require psmb/createnodebutton\n```\n\n## Inspector View for the new Neos UI based on React (enabled by default in Neos 3.3 LTS+)\n\n![Demo](https://user-images.githubusercontent.com/837032/31390152-c73dcbee-addb-11e7-88be-c893e309d854.png)\n\nYou can use the `CreateNodeMixin` which adds the view as a separate Tab. Override the node type settings as needed:\n\n```\nMy.ExampleOrg:Example:\n  superTypes:\n    Neos.Neos:Document: true\n    Psmb.CreateNodeButton:CreateNodeMixin: true\n  ui:\n    inspector:\n      views:\n        createNode:\n          viewOptions:\n            # Possible values are `before`, `into` and `after`\n            position: 'into'\n            # The type of the node to be created\n            type: 'My.ExampleOrg:YourDocumentNodeType'\n            # The path used as reference when creating the new node - e.g. the parent page when position is 'into'\n            referenceNodePath: '/sites/your-site/node-name'\n            # Text for the text input placeholder\n            placeholder: 'Enter title...'\n```\n\nYou can also use the create node button globally in the header of Neos (besides the Edit/Preview navigation). To make \nuse of this feature, you need to enable it in you `Settings.yaml` file:\n\n```\nNeos:\n  Neos:\n    Ui:\n      frontendConfiguration:\n        'Psmb.CreateNodeButton':\n          enabled: true\n```\n\nFurther options are identical with those in the `CreateNodeMixin`. Refer to `Configuration/Settings.yaml` of the package\nfor a full reference.\n\n## Fusion Object for the old Neos UI (enabled by default before Neos 3.3 LTS)\n\n![Demo](https://raw.githubusercontent.com/psmb/Psmb.CreateNodeButton/master/demo.gif)\n\nJust output this TS object somewhere on your page.\nThis will render a form, to create new nodes of type `Your:NodeType`, after the current node.\n\n```\ncreateNodeButton = Psmb.CreateNodeButton:CreateNodeButton {\n  type = 'Your:NodeType'\n}\n```\n\nYou can modify it to create new nodes inside another page `/sites/site/news` node.\n\n```\ncreateNodeButton = Psmb.CreateNodeButton:CreateNodeButton {\n  referenceNode = ${q(site).children('news').get(0)}\n  type = 'Your:NodeType'\n  position = 'into'\n}\n```\n\nPossible values for the `position` are: `before`, `into` and `after`.\n\nNote: If you use this on the site node with the default position, a new node will be created outside\nthe current site. You must use `into` in that case.\n\n## Hide nodes of a certain type in the tree\n\nAs initially stated, using this package makes sense of you have a lot of nodes, slowing down the trees and making\nit hard for editors to have a good user experience. Neos allows you to filter out nodes of a given type from the tree:\n\n```\nNeos:\n  Neos:\n    userInterface:\n      navigateComponent:\n        nodeTree:\n          presets:\n            default:\n              # Allows configuring the baseNodeType used in the node tree. It is a filter, so this also\n              # works: 'Neos.Neos:Document,!Acme.Com:SomeNodeTypeToIgnore'\n              baseNodeType: 'Neos.Neos:Document,!My.ExampleOrg:YourDocumentNodeType'\n```\n\nCredits for the idea go to [Aske Ertmann](https://twitter.com/AskeErtmann).\n\nThat's all, folks!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsmb%2Fpsmb.createnodebutton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsmb%2Fpsmb.createnodebutton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsmb%2Fpsmb.createnodebutton/lists"}