Hi,

i am in a middle of converting a drupal 7 where i have specific acess on nodes inside a content type; it is photos galeries and depending if the user has a role of "friend" or not he can access to a photo galery or not

on drupa7  on each node i have this

how can i reproduce this with backdrop ?

Thanks

Accepted answer

Hello  👋

From the screenshot, it seems that the module providing that functionality is https://www.drupal.org/project/content_access which has been ported to Backdrop: https://github.com/backdrop-contrib/content_access

In your Backdrop site, navigate to "Functionality" → "Install new modules", then type "content access" in the search field and click "Search". The "Content Access" module should come up in the list of results (for me, it was 3rd from the top). Click the "Add to Installation queue" link next to the module, and notice how it's added to the installation queue at the top-right of the page → click "Install" and follow the prompts.

Once the module is installed, go to the settings of each content type you'd like to configure access for, and there should be a new "Access control" tab at the top. There you will find the same interface as on your D7 site.

Try the above, and let us know how you go 😉

Comments

I'm pretty sure that the permissions screen in your screenshot is provided by a contributed module in Drupal 7 (I don't remember which one). If you can find the name of the module you used in Drupal 7, it may also be available in Backdrop CMS. Check here:

https://backdropcms.org/modules

or if you are willing to help debug a development module, you might find a module on github that does not yet have a stable release:

https://github.com/backdrop-contrib

Take a look at these stable modules that might address your need:

https://backdropcms.org/project/simple_access_grants
https://backdropcms.org/project/simple_access

You might also be able to solve your problem with a layout. You can create a custom layout for a content type or a specific node and then restrict access to a specific role. 

Using layouts might work for you if you want to restrict access to all nodes of a specific content or just 1-2 specific nodes. But, if you are trying to control many specific nodes, you will not want to create a custom layout for each path. Then one of the "access" modules will be a better solution.

klonos's picture

Hello  👋

From the screenshot, it seems that the module providing that functionality is https://www.drupal.org/project/content_access which has been ported to Backdrop: https://github.com/backdrop-contrib/content_access

In your Backdrop site, navigate to "Functionality" → "Install new modules", then type "content access" in the search field and click "Search". The "Content Access" module should come up in the list of results (for me, it was 3rd from the top). Click the "Add to Installation queue" link next to the module, and notice how it's added to the installation queue at the top-right of the page → click "Install" and follow the prompts.

Once the module is installed, go to the settings of each content type you'd like to configure access for, and there should be a new "Access control" tab at the top. There you will find the same interface as on your D7 site.

Try the above, and let us know how you go 😉

Thanks for your help it is working now