Skip to content

Add entity single select for mail templates sample showing label-property usage#2233

Merged
Micha Hobert (Isengo1989) merged 7 commits intoshopware:mainfrom
Timothylul:patch-2
Apr 28, 2026
Merged

Add entity single select for mail templates sample showing label-property usage#2233
Micha Hobert (Isengo1989) merged 7 commits intoshopware:mainfrom
Timothylul:patch-2

Conversation

@Timothylul
Copy link
Copy Markdown
Contributor

Add entity single select for mail templates sample showing label-property usage

Summary

Adds a sample on how to use the label-property field within the config.xml as I could not find any documentation showing how to use this.

Related links

https://developer.shopware.com/docs/guides/plugins/plugins/plugin-fundamentals/add-plugin-configuration.html

Checklist

  • I reviewed affected links, code samples, and cross-references, including PageRef references where relevant.
  • I added or updated redirects in .gitbook.yaml if pages were moved, renamed, or deleted.
  • I updated .wordlist.txt (and sorted it) if spellcheck flags new legitimate terms.
  • Any required dependent changes in downstream modules have already been merged and published.
  • This pull request is ready for review.

Notes

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a documentation sample demonstrating how to configure sw-entity-single-select for mail_template entities using label-property, clarifying how labels can be derived from a specific entity field in config.xml.

Changes:

  • Added a new example section showing sw-entity-single-select configured for mail_template.
  • Demonstrated using <label-property> to display the mail template description.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread guides/plugins/plugins/plugin-fundamentals/add-plugin-configuration.md Outdated
@Isengo1989
Copy link
Copy Markdown
Contributor

Micha Hobert (Isengo1989) commented Apr 10, 2026

Tim Körtgen (@Timothylul) thx for the PR. The docs state that there are 5 possible types, you added a second one for :

<component name="sw-entity-single-select"> - there is one for sw-entity-single-select already. Anything in particular that you felt was missing instead? Trying to avoid duplicates and grow the list of examples that have the same component type. We can still add it, as it gives extra information for label-property, but I am curious if some info was maybe unclear.

…ation.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Isengo1989
Copy link
Copy Markdown
Contributor

Tim Körtgen (@Timothylul) could you please take a look, thx

@Timothylul
Copy link
Copy Markdown
Contributor Author

Hi Micha Hobert (@Isengo1989)
I could not find anything regarding the label-property. Just thought it would be the easiest way to add another example showing how to use this. But as you said the sw-entity-single-select component would be duplicated. Maybe it is better to just add the label-property to the existing example with an explanation

@Isengo1989
Copy link
Copy Markdown
Contributor

Hi Micha Hobert (Micha Hobert (@Isengo1989)) I could not find anything regarding the label-property. Just thought it would be the easiest way to add another example showing how to use this. But as you said the sw-entity-single-select component would be duplicated. Maybe it is better to just add the label-property to the existing example with an explanation

OK, got it, I misread that this was about the mail_template, but further check showed why this is relevant, also for other entities. The issue here is that if there is no "name" on the entity, it is just blank. Probably the reason why you checked for alternatives in the first place.

Will add that info for others in this PR

@Isengo1989 Micha Hobert (Isengo1989) merged commit b61348c into shopware:main Apr 28, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants