Paragraph select list or entity reference

Created on 30 January 2023, over 1 year ago
Updated 20 February 2023, over 1 year ago

Problem/Motivation

Hi, I cannot make work paragraph with entity reference (taxonomy) or with select list:

template_test:
template-mig:
label: Marketing Template
fields:
title: Marketing Plan
field_parag_test:
- {type: additional_sub_action, field_high_level_action_owner: 3398}
- {type: additional_sub_action, field_selectlist: "Open"}

How can I use reference or select list?

πŸ“Œ Task
Status

Fixed

Version

1.3

Component

Documentation

Created by

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

Comments & Activities

  • Issue created by @coaston
  • Status changed to Needs review over 1 year ago
  • πŸ‡³πŸ‡±Netherlands PatrickScheffer

    I pushed a fix for the entity reference in the 8.x-1.x branch, can you verify if it works?
    For the select list you should use the option key in the template.

  • Hello,

    Thank you - it works fine for autocomplete,
    .....but once I select different widget like the select list (if used with taxonomy) - this does not work.

  • πŸ‡³πŸ‡±Netherlands PatrickScheffer

    Alright, I rewrote the code so all entity references are supported in paragraphs, can you check again? Also, can you check if adding new paragraphs still work after applying a template? I encountered a bug saying "An illegal choice has been detected." when I tried to add a new paragraph. I fixed this in D10, but I think you're using D9 so it would be nice if you could test this.

  • Hello,

    I can confirm entity reference also for other widgets forks fine.

    However when it comes to add new paragraph - it is weirs. I do not see any issue, but if I select template where by default are for example 5 paragraphs already pre-filled as needed I and decide to add additional one when creating new content (not to change template, but just one time) - every time it removes all of them and keep just 2. When I choose a different template where for example 3 are and click "add additional" - it will remove the last one and keep 2.

    so from some reason "add additional" button removes paragraphs and keep only 2. Basically now it is not possible to add additional one if needed if more then > 2 are in template. (it is but it removes the old and a new one can be added)

  • πŸ‡³πŸ‡±Netherlands PatrickScheffer

    Thanks for testing. I thought I fixed a bug by adding an AJAX call check, but that broke the AJAX calls themselves. I removed the check and solved the bug another way so everything should be fine now. Can you check again?

  • Thank you,

    Now it seems it is working fine. I can remove/add or clone paragraphs so currently no bug found.

    Great and fast job, much appreciated!

  • Status changed to Fixed over 1 year ago
  • πŸ‡³πŸ‡±Netherlands PatrickScheffer

    Glad to hear, I've released version 8.x-1.4 containing this fix.

  • Status changed to Fixed over 1 year ago
Production build 0.69.0 2024