Download the PHP package faithcatholic/custom_node_access without Composer

On this page you can find all versions of the php package faithcatholic/custom_node_access. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package custom_node_access

Custom Node Access

Custom Node Access lets an editor restrict who can view a single node by picking user roles on the content form. The selection is stored in a field the module provides, and turned into node access grants through core's node grants system, so a restricted node disappears from listings and views for everyone outside the selected roles, not just from its own page. A node with no roles selected stays unrestricted. The module also grants authenticated users view access to nodes while /system/files is being served, so private files embedded in a restricted node still load.

Requirements

Drupal 10.3 or later, or Drupal 11. Core's Node and Field UI modules, nothing from contrib.

The module does nothing on its own. It expects a field to exist on every content type you want to control:

Grant the Edit custom node access permission to any role that should see the setting on the content form.

Installation

Enable at /admin/modules, or drush en custom_node_access.

Then add the field_access field described above to each content type you want to restrict. Without it the module is inert, which is the usual reason it looks like it does not work on a fresh install.

Usage

Development

The repository is the module itself. DDEV builds a Drupal site around it: web/ and vendor/ are ignored by git, and the module is symlinked into web/modules/custom/custom_node_access.

ddev start runs the bootstrap in .ddev/post-start.sh: it fetches core and dependencies with ddev poser, installs the site if the database is empty, symlinks the project, enables Devel and this module, and prints a drush uli login link. The account is admin with password 1.

Checks:

Add-ons in use: ddev-drupal-contrib, ddev-drupal-contrib-extras, ddev-drupal and ddev-pimp-my-shell.

Notes


All versions of custom_node_access with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package faithcatholic/custom_node_access contains the following files

Loading the files please wait ...