Redirect to registration settings page after adding new content

Created on 15 May 2023, over 1 year ago
Updated 18 May 2023, over 1 year ago

Problem/Motivation

I'm creating a small internal platform to allow my members to do some "car sharing":
my members are able to create a new content of type "Route" and specify how many seats left they have in their car, such as other members can register to have a seat in that specific Route.

In order to simplify things as much as possible for my members, I'd like to be able to redirect them to the Registration settings page (node//registrations/settings) after saving a new content of type "Route".

Members do not have admin rights or access to the admin theme.

Is there a way to do this? Maybe I missed something :)

πŸ’¬ Support request
Status

Closed: works as designed

Version

3.0

Component

Miscellaneous

Created by

πŸ‡§πŸ‡ͺBelgium Axael

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

Comments & Activities

  • Issue created by @Axael
  • πŸ‡ΊπŸ‡ΈUnited States john.oltman

    Hi, thanks for the post. No, you are not missing anything. Drupal core and the Registration module do a lot of things out of the box, but they cannot handle every possible use case.

    For the redirect, you will need to implement a small amount of custom code in a module. There are various ways to do it, this article mentions some: https://www.drupal.org/forum/support/theme-development/2021-06-24/how-ca... β†’

    You will also need to assign "Administer own settings" permission for the registration type you are using for routes, to the appropriate roles for your users. If you don't want these people to have an admin permission, you'll have to create your own permission in a custom module and add your own access control handler in that module, that does things similar to the code in the Registration module that handles the aforementioned permission.

    Good luck!

  • πŸ‡§πŸ‡ͺBelgium Axael

    Thanks a lot for your answer, John.
    And thanks for this module, I see there's been a lot of enhancements since I first used it a few months ago, that's awesome!

  • Status changed to Closed: works as designed over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States john.oltman
Production build 0.71.5 2024