Ergebnis 1 bis 6 von 6

Thema: Filter in the backend

  1. #1
    Contao-Nutzer Avatar von Paolob
    Registriert seit
    29.12.2011.
    Beiträge
    23

    Frage Filter in the backend

    In a metamodels, I have a Select field that reads the data from the user tables.

    In the input mask I asked that this field is used as a filter.

    On the entry form, I have the field, but in the curtain, there are no values​​. It 'a bug or something wrong?

    Thanks
    Paolo B.
    Contao ambassador
    ContaoCms.it - Sito di riferimento per la comunità italiana

  2. #2
    Contao-Nutzer Avatar von YuriOrlovBtf
    Registriert seit
    14.09.2012.
    Beiträge
    40

    Standard

    Zitat Zitat von Paolob Beitrag anzeigen
    In a metamodels, I have a Select field that reads the data from the user tables.

    In the input mask I asked that this field is used as a filter.

    On the entry form, I have the field, but in the curtain, there are no values​​. It 'a bug or something wrong?

    Thanks
    please specify:

    <mapping>
    input mask == MetaModel input screens
    entry form == "new item"/"edit item" form
    curtain == source code? select options?
    </mapping>

  3. #3
    Contao-Nutzer Avatar von Paolob
    Registriert seit
    29.12.2011.
    Beiträge
    23

    Standard

    Yes .. I see better specify.

    input mask == MetaModel input screens, yes ..

    entry form == "new item" / "edit item" form, I mean the list of items already entered.

    In the selection of the filter I only see the name of the field. I do not see the list of values ​​that can be filtered.

    Here are the screens with the configuration and filter.

    The attributes configuration
    metamodels00.jpg

    The attributes in the input screen
    metamodels01.jpg

    The backend list of values and the filter
    metamodels02.jpg
    Paolo B.
    Contao ambassador
    ContaoCms.it - Sito di riferimento per la comunità italiana

  4. #4
    Contao-Nutzer Avatar von YuriOrlovBtf
    Registriert seit
    14.09.2012.
    Beiträge
    40

    Standard because there are no Rows assigned to a user

    When the Attribut "autore" is created, the Field in the Database get the Value "0" (zero). Thats why you get a blank option.
    Your options:

    1) update the Database "UPDATE mm_foobar SET autore = 1 WHERE autore = 0" // Uid 1 (admin) becomes default user
    2) exclude empty values: usernameCondition.png
    3) deal with it

  5. #5
    Contao-Nutzer Avatar von Paolob
    Registriert seit
    29.12.2011.
    Beiträge
    23

    Standard

    Thanks for the reply.

    Monday I try to check your suggestions.
    Paolo B.
    Contao ambassador
    ContaoCms.it - Sito di riferimento per la comunità italiana

  6. #6
    Contao-Nutzer Avatar von Paolob
    Registriert seit
    29.12.2011.
    Beiträge
    23

    Standard

    I've tried.
    As you suggest it works.
    It seems to have a filter that works if Alias Column and Value Column are setting the same field.


    Thnaks
    Paolo B.
    Contao ambassador
    ContaoCms.it - Sito di riferimento per la comunità italiana

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Lesezeichen

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •