home / docs / sections

sections: configuration:table-configuration-label-column

This data as json

id page ref title content breadcrumbs references
configuration:table-configuration-label-column configuration table-configuration-label-column   Datasette's HTML interface attempts to display foreign key references as labelled hyperlinks. By default, it automatically detects a label column using the following rules (in order): If there is exactly one unique text column, use that. If there is a column called name or title (case-insensitive), use that. If the table has only two columns - a primary key and one other - use the non-primary-key column. You can override this automatic detection by specifying which column should be used for the link label with the label_column property: [[[cog config_example(cog, textwrap.dedent( """ databases: mydatabase: tables: example_table: label_column: title """).strip() ) ]]] [[[end]]] ["Configuration", null, "Table configuration"] []
Powered by Datasette · Queries took 1.828ms