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

Feature request: Option to set empty values for resource fields #1092

Open
stefanmuellerdo opened this issue May 13, 2024 · 1 comment
Open

Comments

@stefanmuellerdo
Copy link

Allow Setting Empty (Blank) Values for Resource Fields in the Admin Interface

Hello SmartStore Team, I have encountered a limitation within the SmartStore admin panel, specifically in the language resource management section (/admin/language/resources/). Currently, it seems impossible to set the value of a resource, such as "Footer.Info", to an empty string or whitespace (such as a space or a Shift-Space). This restriction can be inconvenient when a value needs to be intentionally blank for certain uses, such as removing default footer info without replacing it with other content.

Please see:

2024-05-13_10-38-58

Suggested Enhancement:

  1. Modify the validation rules for resource values to accept empty strings or strings consisting solely of whitespace characters.
  2. Update the UI feedback to allow administrators to clear existing values without errors stating that such changes are not possible.

Justification:
This change would provide more flexibility in customizing the storefront by allowing fields to be cleared as needed without workaround solutions. It would also streamline the admin experience, reducing the need for unnecessary placeholder text or scripts to enforce blank values.

Potential Challenges:

  • Ensuring that this change does not interfere with the default behavior expected in other parts of the system where a non-empty value might be necessary.
  • Updating documentation and user guides to explain this new capability.

Thank you for considering this enhancement to improve the flexibility and user-friendliness of the SmartStore platform.

Greetings!!!

@muratcakir muratcakir changed the title Feature Request: Option to Set Empty Values for Resource Fields Feature request: Option to set empty values for resource fields May 13, 2024
@muratcakir muratcakir added this to the 6.0 milestone May 13, 2024
@muratcakir muratcakir self-assigned this May 13, 2024
@Michael-Herzog
Copy link
Contributor

For footer headings you can now enter   as resource in order to remove them from being displayed.
Added by this commit

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

No branches or pull requests

3 participants