Creating an entity Block

Created on 23 July 2015, over 9 years ago
Updated 7 August 2024, 4 months ago

Thanks a lot for this module.
It will be nice to have a block with the access token that can be placed on the node view.
Use case:

  • An admin create a node and generate a token.
  • A user without right to edit the node, but with right to bypass token access is in charge of emailing the access code to some clients.
  • Since this user cannot edit the node, he cannot get the url to share, unless the admin intervenes.

I tried to execute tca_get_token_entity() in a block and it did not worked.

Thanks again

✨ Feature request
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States sibopa

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¬πŸ‡§United Kingdom yorkshire-pudding North East England

    I've address this in a slightly different way in the Backdrop CMS port (see https://www.drupal.org/project/tca/issues/3466432 🌱 Port to Backdrop CMS Fixed ). I've added the TCA status and token to views and added an option into the view display settings to override the access. This allows views blocks to be displayed, which can include a link that can be configured as needed. A contextual filter can be used to only show if authorised by token or permission or can set permissions on the view or the block. See https://github.com/backdrop-contrib/tca/issues/1 and the associated pull request for the code if you want to backport it, or give Backdrop a try.

Production build 0.71.5 2024