hyper icon indicating copy to clipboard operation
hyper copied to clipboard

Link type "Category" - is empty

Open ManiakMill opened this issue 1 year ago • 2 comments

Describe the bug

I added custom categories and try to choose by field. All categories have items.

{0BA33F25-6C45-4E47-A313-4B8EF493E64A}

But overview is empty: {DCA77139-08E2-4873-8527-A69A8B16AEED}

Steps to reproduce

Craft CMS version

Craft Pro 5.4.10.1

Plugin version

2.1.2

Multi-site?

No

Additional context

No response

ManiakMill avatar Nov 13 '24 17:11 ManiakMill

Its happened when Category URI Format is empty

ManiakMill avatar Nov 13 '24 17:11 ManiakMill

That's correct, Hyper will only show elements that have a URL by default. This was a feature request from many of the other link plugins which we incorporated into Hyper.

But it's also a reasonably common issue that crops up so I'm thinking I might need to add a plugin setting to control this.

The logic here is that there's not much use selecting an element for a link, if that element has no URL - the thing that makes a link. But then, there are always exceptions like User elements, which don't have a URL. But you might be constructing that logic in your templates manually, and you'd still want your content editors able to pick a User element.

engram-design avatar Nov 14 '24 22:11 engram-design