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

Extend attributes Select / Tags #997

Open
stefanheimes opened this issue Mar 23, 2016 · 4 comments
Open

Extend attributes Select / Tags #997

stefanheimes opened this issue Mar 23, 2016 · 4 comments
Assignees
Labels
enhancement This issue is about an enhancement (aka new feature) question We have a question, please elaborate on the ticket.
Milestone

Comments

@stefanheimes
Copy link
Member

I have a problem with the filter. If i using a select or Tag the system used the attributes settings to know which field should be used for the GET-Parameter and which attribute should be used for the displaying value.

Now i have the problem that for the filter i want to use another setup. In the backend i want the attribute with the short name but for the frontend and filter i want another attribute with a long name for the users.

My idear is that we could add a field to the attributes where we can define which field we want to use. When the attributes build the filter it can use this field instead of the field defined in the basic attribute settings.

This function should only work if we in the FE and a field is set in the configuration.

We have to to this for the 4 attributes. Select/Tags/Trans. Select/Trans. Tags

What to you think about this feature?

@stefanheimes stefanheimes added enhancement This issue is about an enhancement (aka new feature) question We have a question, please elaborate on the ticket. labels Mar 23, 2016
@zonky2 zonky2 changed the title Extend attributes Selec / Tags Extend attributes Select / Tags Mar 24, 2016
@zonky2 zonky2 added this to the 2.1.0 milestone Mar 9, 2017
@zonky2 zonky2 modified the milestones: 2.1.0, 2.2.0 Mar 14, 2018
@zonky2
Copy link
Contributor

zonky2 commented Jan 22, 2022

@stefanheimes : I don't understand what you mean - you can use a separate label for the filter widget.

See screenshot

FireShot Pro Webpage Screenshot #815 - 'MetaModels I mm220 dev metamodel me' - mm

@zonky2
Copy link
Contributor

zonky2 commented Jan 22, 2022

@stefanheimes maybe we add this #1055

@zonky2 zonky2 modified the milestones: 2.2.0, 2.3.0 May 5, 2022
@zonky2
Copy link
Contributor

zonky2 commented Aug 28, 2022

@stefanheimes is the question still relevant? you can specify the things individually...

@zonky2
Copy link
Contributor

zonky2 commented Aug 31, 2022

Es geht um unterschiedliche Ausgaben der "Option-Werte" zwischen Backend (Eingabemaske) und Frontend (Filterwidget)

z.B. im BE ein Select mit DE, FR, UK usw. aber im Filterwidget ein select mit Deutschland, Frankreich, Großbritanien usw.

Lösungen:

  1. eigene Filterregel mit neuer Ausgabe
  2. aktuelle Filterregel(n) erweitern mit Auswahl Attribut des referenzierem Model für Option-Werte
  3. Anzeige im BE ändern z.B. über getOptionListener

siehe u.a.
MetaModels/attribute_select#65
MetaModels/attribute_tags#70

Interessant wäre Möglichkeit 2, wenn das Model nicht referenziert ist - dann sind die Option-Keys und die Option-Werte gleich, d.h. man kann sich für einen Aliaswert oder für einen normalen Textwert entscheiden - das aber nicht separat zuweisen.

@zonky2 zonky2 modified the milestones: 2.3.0, Future Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This issue is about an enhancement (aka new feature) question We have a question, please elaborate on the ticket.
Projects
None yet
Development

No branches or pull requests

3 participants