- 🇳🇱Netherlands tim_dj Netherlands
tim_dj → changed the visibility of the branch 3285015-enable-tokens-on to hidden.
- 🇳🇱Netherlands tim_dj Netherlands
@basvredeling I've created a basic version of tokenizable admin titles. For now it only supports [paragraph:XXX] tokens
also I've added possibility to set a default admin title per paragraph type. So that we can for example add [paragraph:field_title_field] as default for certain types. If no admin title is set it will fallback to original summary. - Status changed to Needs review
10 months ago 12:57pm 2 February 2024 - Status changed to Needs work
10 months ago 1:49pm 2 February 2024 -
basvredeling →
committed d65309f0 on 4.x authored by
tim_dj →
#3285015 allow tokens in admin title field
-
basvredeling →
committed d65309f0 on 4.x authored by
tim_dj →
- 🇳🇱Netherlands basvredeling Amsterdam
@tim_dj I've changed the MR a bit and merged it into 4.x. Thanks.
I think we need 2 more things:- A custom token that generates the paragraph summary as output. Just like is done inside the ParagraphBlocksLabeller:getTitle() when there is no admin title present. The \Drupal\paragraph_blocks\Entity\ParagraphBlocksEntity::getSummary() already does this, so that should be quite easy.
- Potentially, something like a drush command, to update all existing admin_titles, or just the ones that are empty, to a new tokenised structure.
- Assigned to tim_dj
- Issue was unassigned.
- Status changed to Needs review
10 months ago 8:24am 6 February 2024 -
basvredeling →
committed 63f7371e on 4.x authored by
tim_dj →
#3285015 add summary token
-
basvredeling →
committed 63f7371e on 4.x authored by
tim_dj →
- Merge request !13#3285015 Do not load admin title in summary. This can create a loop when using [paragraph:summary] → (Merged) created by tim_dj
-
basvredeling →
committed 448ed8b9 on 4.x authored by
tim_dj →
#3285015 Do not load title in summary. This can create a loop when using...
-
basvredeling →
committed 448ed8b9 on 4.x authored by
tim_dj →
- Status changed to Fixed
10 months ago 11:07am 6 February 2024 - 🇳🇱Netherlands basvredeling Amsterdam
Thanks @tim_dj, these changes have all been merged. I'll make a new 4.x release soon.
- Status changed to Fixed
10 months ago 1:31pm 6 February 2024