Skip to content

Ability to remove page from page field by ID #198

@adrianbj

Description

@adrianbj

Short description of the enhancement

It would be great to be able to do:

$page->pagefield->remove(nnnn);

rather than having to do:

$page->pagefield->remove($pages->get(nnnn));

Why would the enhancement be useful to users?

Mostly because of consistency with the add method which lets you use the ID directly.

For more info, see here:
https://processwire.com/talk/topic/5013-how-to-delete-a-page-in-page-field-multiple-pages-pagearray/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions