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

Defining the description of records #125

Open
tclela20 opened this issue Dec 3, 2021 · 1 comment
Open

Defining the description of records #125

tclela20 opened this issue Dec 3, 2021 · 1 comment

Comments

@tclela20
Copy link

tclela20 commented Dec 3, 2021

Hello,

I have started using the new Xataface 3.0 and it looks good and works as expected. One thing I cannot seem to get running is the mobile list view. The heuristics gets the title field right, but it uses the title field for the description as well. I have tried to change this in the fields.ini and I cannot get it to change.

I added title=1 to another column and the title changes; however, when I add description=1 to another field it continues to show the presumed title vs the field I am trying to specify as the description.

Can anyone point me in the right direction to get this solved? I appreciate it in advance.

@itmuecke
Copy link

If you want to create your very own description , you can do that within tha tables class:

    class tables_tablename {
            function getDescription($record){
                    $duedate = date("d.m.Y", strtotime($record->strval('duedate')));
                    $flag = $record->htmlValue('flag');
                    $kat = $record->htmlValue('kategorie');
                    $desc = "$flag | $duedate | $kat";
                    return $desc;
            }
    }

This is just an example. You can build it like you want and need it.

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

No branches or pull requests

2 participants