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

[5.x]: Category setting not being saved without an error. #16351

Closed
bob-pixeldeluxe opened this issue Dec 20, 2024 · 1 comment
Closed

[5.x]: Category setting not being saved without an error. #16351

bob-pixeldeluxe opened this issue Dec 20, 2024 · 1 comment
Labels

Comments

@bob-pixeldeluxe
Copy link

bob-pixeldeluxe commented Dec 20, 2024

What happened?

Description

I wanted to create a category which creates an dynamic background pattern which can be reused on pages. Now i want the customer to be able to use the live preview without necessarily an url. So im trying to save the category with just a template path and no url format. However after saving the category is unchanged and there is no error message. (I've solved this another way but thought I should report it)

Steps to reproduce

  1. create a category group.
  2. after creation edit it and under site settings add just a template path no URI format and save.
  3. check if the input was saved.

Expected behavior

Either it should work or there should be an error that the url is required.

Actual behavior

Input is not saved.

Craft CMS version

5.5.7

PHP version

8.2

Operating system and version

No response

Database type and version

mariadb 10.4

Image driver and version

No response

Installed plugins and versions

@brandonkelly
Copy link
Member

This is expected behavior. The placeholder text within the “Category URI Format” column says “Leave blank if categories don’t have URLs”. If the categories don’t have URLs for a site, the Template value will be discarded.

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

2 participants