Link node selection does not auto genera...
# package-development
a
Anyone with examples or documentation on how to use the link picker modal in Umbraco 14? For one, the link picker modal is not part of
@umbraco-cms/backoffice/modal
like most other modals. I've found old'ish examples to indicate that it may have been (might have been the pre-reeleases), but its not in 14.1.0. I haven't found other references for it in the import map, so currently I'm importing this directly. Which feels a bit wrong - e.g. there is no cache busting in the URL.
Copy code
js
import { UMB_LINK_PICKER_MODAL } from "/umbraco/backoffice/packages/multi-url-picker/link-picker-modal/link-picker-modal.token.js";
The modal also still feels a bit incomplete. The modal with is currently
small
, but I'd say it should be
medium
to give some more horizontal space. This is general for the modal, but especially around the URL and query string inputs being on the same line. Ideally the query string field should be shown below the URL field. When picking a content or media node, the title field isn't populated. But entering a value in the title field after having selected an node, the returned link object will only contain the
name
property, meaning the
type
,
unique
and
url
properties are lost. Similar if picking a node and then entering a value in the query string field, only the
queryString
property is returned. The
url
property will also just be the GUID key, and not an actual URL. In previous versions of Umbraco, the URL would be resolved before picking the node. https://github.com/umbraco/Umbraco-CMS/issues/16596 describes a part of this, but I haven't been able to find other issues about this. Someone from HQ that can shed a bit of light on the status of the link picker modal? Is it still being worked on, or should I create an issue to bring attention to the issue?
l
The
UMB_LINK_PICKER_MODAL
token will be available as an export in 14.2.0 (RC due in 2 weeks). As for the status of the modal, some of us are aware of the missing features, its on our radar, but if you do raise an issue about these concerns, it could bring some priority to it. 🙏
a
Great 👍 I'll look into creating an issue 😉
16 Views