Open richard-s-rowley opened 2 years ago
Add linkit! This might be in localgov_paragraphs.
@markconroy pointed out that we might need a patch for linkit to work with link fields.
@ekes points out that if this is changing field formatters on existing installs, it might get complex.
In general, we don't want to enforce changes to config on existing installed sites. so maybe this is simply for new sites and we bump the version of localgov_paragraphs?
Can someone let me know why we are using plain text field for this link field in the localgov_link paragraph type?
We can't set the formatter for that field to use linkit (since it's not a link field). If we are doing to delete that field to change it to a link field, then we don't need linkit, since the link field type will look up nodes by default (just won't look up other entities).
Ping @finnlewis, any idea re ^
OK - let's move this back to no status for now.
@finnlewis @msayoung can you explain the issue here? Cheers
The issue is that the "link" field we are using is actually just a basic text field, not an entity reference type field, so it has nothing dynamic in it that we can hook into to make a look up. Without that, I'm not sure we can solve this without removing the current text field, creating it as an actual link field, then providing an upgrade path to the new field (but this will then mean everyone will also need to update their themes if they did any custom work on displays of those fields).
Just a thought, and a question.
Is there no way to smooth this upgrade path for users, to do in phases? Because the longer it's left, the more sites will be using the plain text field, in their themes etc. Eg.
I like your thinking @mccrodp
Assuming this is just adding the linkit.
If complexities arise due to group etc.... it might get bigger!