Closed (fixed)
Project:
Inline Formatter Field
Version:
3.1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
5 Mar 2023 at 18:07 UTC
Updated:
24 Mar 2023 at 04:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
msn5158 commentedno
Comment #3
msn5158 commentedComment #4
bobbysaul commentedHello, I don't think I understand the issue. Can you provide more information? Thanks.
Comment #5
msn5158 commentedHello,
Please login here to see:
User name : admin
Password: admin
Test view: https://master-2kimyieyvg0ucxgjol5fqflmnzppt8l2.tugboatqa.com/admin/stru...
Frontpage view: https://master-2kimyieyvg0ucxgjol5fqflmnzppt8l2.tugboatqa.com/admin/stru...
Installed modules: inline_formatter_field, token, token_filter
Print page:
https://master-2kimyieyvg0ucxgjol5fqflmnzppt8l2.tugboatqa.com/
https://master-2kimyieyvg0ucxgjol5fqflmnzppt8l2.tugboatqa.com/test
Comment #6
bobbysaul commentedHello,
The tug boat test site has expired, but I was able to test out the functionality on my own local development site. I want to see if you have the Token Module module enabled? The tokens do not work without this module enabled.
Hopefully, this helps you!
Comment #7
bobbysaul commentedAfter looking at the code, I see that there is a couple of unnecessary conditionals that are checking if the Tokens module is enabled. These are unnecessary because the token service was added in Drupal 8.9. I believe I can remove these conditionals and update the minimum supported version to 8.9.
Comment #9
msn5158 commentedI test the drupal version is 9.4.11, I have installed the three module (inline_formatter_field, token, token_filter), and all enabled.
Comment #10
bobbysaul commentedI've added a commit 1c3a46a1. Can you install the latest dev version or apply the patch for the commit and verify if this fixes your issue?
Comment #11
msn5158 commentedToken still no work only in Views (inline_formatter_views_field).
The following two sub modules work normally:
inline_formatter_field
inline_formatter_display
Comment #12
msn5158 commentedCan you go here to test?
https://simplytest.me/
Comment #13
bobbysaul commentedI am reviewing your issue and just realized you are talking about the sub-module inline_formatter_views_field. I can verify that normal site tokens do not work as the module is currently. I will start working on this feature requests and hope to have it fixed soon. Sorry for the confusion.
Comment #14
bobbysaul commentedComment #16
bobbysaul commentedI added a commit to the dev branch that I believe gives the feature requested, replace tokens in the InlineFormatterViewsField.
Comment #17
msn5158 commentedAfter the test, it can work normally now. Thank you!
If it can use the formats CKEditor (/admin/config/content/formats) will be better.
At present, it does't support (embed, insert_view_adv) like these modules, Because it haven't (Filter processing order) in (/admin/config/content/formats) .
Like this code does't support:
entity_embed:
<drupal-entity data-entity-embed-display="view_mode:node.full" data-entity-type="node" data-entity-id="1"></drupal-entity>views_entity_embed:
<drupal-views data-view-arguments="" data-view-display="default" data-view-name="test"></drupal-views>I just leave a feature request record, if you need the feature or in the future.
Comment #18
msn5158 commentedComment #19
msn5158 commentedI test the Token and Twig, Now it supports Token, but does not support Twig. {{ title }} no printing.
Comment #20
bobbysaul commentedIs the title field nested above the inline formatter field?
The inline formatter view field is set up similarly to the core custom text view field. The replacement patterns drop down should list which fields are available.
Comment #21
msn5158 commentedOh, Yes, It is normal work, I just installed a module (Mustache Logic-less Views), make them can't work together, there was a little regret.
Comment #22
msn5158 commentedExcuse me, is there a plan to start adding a (Filter processing order) like (/admin/config/content/formats)?
Let it support more filters plugins.
Comment #23
bobbysaul commentedYes, I think that adding a feature for using a CKEditor editor is a reasonable request. Can you create another issue to track this feature?
I can also point you towards the Twig Tweak module for embedding entities such as media with the "drupal_entity" twig function. For example:
And also if this issue for the tokens in the view field is working, can you mark this issue as reviewed and tested?
Thanks you!
Comment #24
msn5158 commentedComment #25
msn5158 commented