Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Craft 4: Default link type not set correctly (from within matrix) #221

Closed
Antimated opened this issue May 9, 2022 · 5 comments
Closed
Labels

Comments

@Antimated
Copy link

Antimated commented May 9, 2022

Heya! 👋

I have a matrix with (currently) 2 block types. One of the fields inside these blocks is a typed link field. Here I have set the "Default link type" to "Custom" but it doesn't seem like this setting is being respected.

Screenshot of my matrix settings
Screenshot 2022-05-09 at 13 32 21

Screenshot of a newly created entry after I selected the matrix block type "Full"
Screenshot 2022-05-09 at 13 32 49

I would expect the typed link field to show me settings for the "Custom" link type.
I'm not sure if this is caused by using the link field inside of a matrix, or if it's just a more widespread bug.

Plugin info

  • Typed Link field: 2.1.3-rc
  • Craftcms: 4.0.1
@pascalminator
Copy link
Contributor

I have the exact same problem, whether it is in a matrix or directly as a simple field.

@Antimated
Copy link
Author

Antimated commented Jun 2, 2022

@sebastian-lenz Any updates on this issue? Also when you select the "Default link type" there is no option to select "(no link)". I for one don't like the "(no link)" option to be displayed on the front-end at all.

@sebastian-lenz
Copy link
Owner

@Antimated I don't know, did you create a PR to fix your problem?

@Antimated
Copy link
Author

@Antimated I don't know, did you create a PR to fix your problem?

No I just opened this issue and was wondering if you looked into it or not. 😕

@WHITE-developer
Copy link

I have mixed feelings about this change.
As long as the field isn't required I don't like it that it shows all the fields and so taking up space. Once the field is set to required I believe it already worked fine.
I would like to also haven an "(no link)" option in combination with this new behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants