Allow entity to be chosen based on a entity reference

Created on 1 March 2022, about 3 years ago
Updated 10 April 2024, about 1 year ago

Problem/Motivation

The use case I'm trying to solve is when you have a token that you need replaced, but the token entity is for a paragraph that is associated to the host entity. This is currently not possible in the current architecture. Would you be open to allowing the entity to be retrieve from a different context source?

✨ Feature request
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States droath

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 States chucksimply

    Updated patch for latest release 2.0.2. Haven't tested on dev.

  • πŸ‡ΊπŸ‡ΈUnited States droath

    I encountered an issue where I received an error message like the following:

    Warning: Undefined array key 0 in Drupal\views_argument_token\Plugin\views\argument_default\TokenArgument->processToken() (line 426 of modules/contrib/views_argument_token/src/Plugin/views/argument_default/TokenArgument.php).
    

    It was an easy change in the patch to address to ensure we don't process any empty arrays. The updated patch has been attached.

  • πŸ‡ΊπŸ‡ΈUnited States chucksimply

    Running into an issue on both #8 and #9. If the View has a Page display, token gets completely dismissed when visiting that page. Thought it was a module bug, but removing this patch fixed it. See this dedicated issue for more detail.

    https://www.drupal.org/project/views_argument_token/issues/3440035 πŸ’¬ Views "Page" display ignores any argument token value. Closed: works as designed

  • Status changed to Needs work about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States chucksimply
Production build 0.71.5 2024