verbb / hyper

A Craft CMS plugin for managing links, focusing on user experience.
Other
24 stars 15 forks source link

Link type "Category" - is empty #211

Open ManiakMill opened 1 week ago

ManiakMill commented 1 week ago

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 commented 1 week ago

Its happened when Category URI Format is empty

engram-design commented 1 week ago

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.