Prevent Creating Nodes in Non-IEF Way

Created on 16 June 2023, over 1 year ago
Updated 27 December 2023, 11 months ago

Problem/Motivation

I have a content type, Page, that should only be created in the context of a Book. I use IEF to have make this happen. While I give the users permission to create Page nodes, I would like to prevent anyone from being able to create a Page node within using the IEF field within the Book.

Apologies if this is covered somewhere in the docs, another issue, or elsewhere. I can't seem to find any indication if this is already a feature or something that can be achieved in some feasible way.

πŸ’¬ Support request
Status

Closed: works as designed

Version

2.0

Component

User interface

Created by

πŸ‡¨πŸ‡¦Canada ydahi Waterloo, Canada

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

Comments & Activities

  • Issue created by @ydahi
  • πŸ‡¨πŸ‡¦Canada Nathan Tsai

    Hmm...

    You could try blocking access to the entity.node.edit_form route when the 'node_type' is 'page'.

    You would have to google how to do this, though.

  • Status changed to Closed: works as designed 11 months ago
  • πŸ‡ΊπŸ‡ΈUnited States dcam

    My apologies, but you aren't likely to get an answer here. I suggest posting this question in a dedicated support forum such as https://drupal.stackexchange.com/ or the drupal.org forums.

    I'd tell you if I knew how, but I don't have experience blocking access to create/edit forms.

Production build 0.71.5 2024