Data Tables v1.3.2 - Title Field Selector, Editable Slugs, and Slug Regeneration
v1.3.2 fixes the record title showing "#58" instead of field values, adds a title field selector per definition, makes slugs editable, and adds a one-click slug regeneration button.
New Features
- Title field selector - Choose which field is the record's display title from a dropdown on the definition edit page. Used in the page header, browser tab title, and URL slug generation. Defaults to "Auto (first text field)" for backward compatibility.
- Editable record slugs - Admin record edit form now shows the URL slug field for manual editing.
- Regenerate slugs button - One-click button on the admin record list page that regenerates all record slugs using the title field. Fixes generic slugs like record-2 created during the v1.3.0 migration.
Fixed
- Record title shows "#N" instead of field value - Title resolution now uses the definition's title field setting, then falls back to the first text field. Previously it could show the raw record ID when the first field value wasn't a plain string.
- Bulk delete button count not resetting - Unchecking all checkboxes on the admin record list now correctly resets the button text to "Delete selected" instead of keeping the old count.
- Slug generation uses title field - New records now generate their URL slug from the title field value instead of always using the first field.
How to Fix Existing Records
If you upgraded from v1.2.x and have generic slugs like
record-2:
- Go to AdminCP > Tools > Data Tables > edit your definition
- Set the Title field dropdown to the field you want (e.g., "Model" for a vehicles table)
- Save
- Go to the record list for that definition
- Click Regenerate slugs on the right side
All record URLs and page titles will update automatically. Old URLs will need manual redirects if shared externally.
Upgrading
Upload the ZIP via Admin CP > Add-ons > Install/upgrade from archive. One automatic migration step adds the title_field_id column. All existing data and permissions are preserved.
Requirements
Data Tables v1.3.1 - upgrade step slug unique key sequencing fix
Fixes DuplicateKeyException when upgrading from v1.2.x with existing records. Unique key now added after slug data migration completes.
Data Tables v1.3.0 - Friendly URLs, CSV Import/Export, Icon Picker, and Enhanced UI
v1.3.0 adds friendly record URLs with breadcrumbs, clickable table rows, CSV import and export, field visibility controls, unlisted table definitions, per-definition FontAwesome icon picker, enhanced public page layouts, bulk record operations, and inline field display order editing.
New Features
- Friendly URLs - Records are now accessible at
/data-tables/record/{table-slug}/{record-slug}/ with auto-generated unique slugs. Legacy ?record_id=N URLs 301-redirect to the new format.
- Breadcrumbs - Full navigation trail on all public pages: Home > Data Tables > Table Name > Record Title.
- Clickable table rows - Click anywhere on a table row to navigate to the record detail page. Ctrl/Cmd+click opens in a new tab. Action buttons still function independently.
- Field visibility - Per-field "Show in table" toggle to hide columns from the table view while still displaying them on record detail pages.
- Unlisted definitions - Hide tables from the public index while keeping them accessible via direct URL. "Unlisted" badge in AdminCP.
- CSV Import - Upload CSV files from the AdminCP record list page. Supports comma, tab, semicolon, and pipe delimiters. Automatic column mapping, 5-row preview, lookup resolution with optional auto-creation of missing options.
- CSV Export - Download table data as CSV with formatted cell values (lookup labels, boolean Yes/No, table lookup display labels).
- Inline field display order - Edit display order values directly from the field list page without opening each field individually.
- FontAwesome icon picker - Per-definition custom icon selectable from 1,500+ FontAwesome icons (e.g., fa-car, fa-wrench, fa-database). Displayed on the table list, table view header, and record detail header.
- Enhanced table list - Public table directory uses rich card rows with definition icon, description, field count, and record count badge with smooth hover transitions.
- Unified page headers - Table view and record detail pages use a consistent icon + title block header pattern for visual cohesion across all Data Tables pages.
- Bulk select & delete - Admin record list has select-all checkbox and batch delete button with dynamic count display.
Changed
- Record detail URL changed from
/data-tables/{slug}/view-record?record_id=N to /data-tables/record/{slug}/{record-slug}/
- Table view headers respect the field "Show in table" setting
- Record slugs are stable - editing a record no longer changes its URL
- Table lookup autocomplete mode (>50 options) uses count-first strategy instead of loading all records into memory
Fixed
- Lookup option ID stability - Editing a lookup field (e.g., adding a new option) no longer reassigns option IDs, so existing records keep their values
- Boolean required validation - Boolean fields marked "required" no longer block record creation with false-positive errors
- Definition slug upgrade step - Upgrading from v1.2.x now correctly adds the slug column to definitions
- Case-insensitive option matching - Renaming a lookup option's casing preserves the option ID
- Lookup zero-value rejection - Option ID 0 is no longer accepted as valid
- Orphaned table lookup display - Deleted targets now show "(Unknown)" consistently
- Field type change cleanup - Changing a field type now clears stale reference IDs from records
- syncRecordRefs transaction safety - Record reference sync wrapped in transaction
- CSV import path traversal - File path validation prevents directory traversal attacks
- Cross-definition validation - Admin controller now validates field/record ownership across table definitions
Upgrading
Upload the ZIP via Admin CP > Add-ons > Install/upgrade from archive. Seven automatic migration steps handle everything: adding slugs to definitions and records, generating slugs for existing data, adding field visibility and definition listing columns, adding the icon column, and creating indexes for slug lookups. No manual steps required. Existing record URLs will 301-redirect to the new friendly format. All permissions and data are preserved.
Requirements