Index

  1. Home
  2. Docs
  3. Index
  4. Data Explorer
  5. Column Settings

Column Settings

WP Data Access > Data Explorer > Manage > Settings > Column Settings

Column Labels

Column labels are automatically used throughout the plugin in all list tables and data entry forms (Data Explorer, Data Publisher and Data Projects). Within the Data Publisher and Data Projects tools column labels can be overwritten.

There are two types of column labels:

  1. Column labels for list tables
  2. Column labels for data entry forms

If you do not define any column labels for a table or view, the default label settings will be used.

Column Types

WordPress Media Library integration

The plugin supports WordPress media library integration for column types:

  • Attachment
  • Audio
  • Hyperlink
  • Image
  • Image URL
  • Video

These columns will be handle as media columns throughout the plugin, including list tables, data entry forms, Data Publisher pages and Data Project pages.

Attachments

Attachment columns can store any media from your WordPress media library. In a list table an attachment is shown as a link to the associated file. Media can be added in a data entry form in edit mode. In view mode the attachment is shown as a hyperlink.

Audio

Audio columns can only store audio from your WordPress media library. The plugin generates an audio shortcode for this type of media in list tables. Audio can be added in a data entry form in edit mode. In view mode an audio shortcode is added to the form.

Hyperlink

Stores a static hyperlink in JSON or TEXT format (see Table Settings for more information). The hyperlink can be entered in the data entry form of the table, and is shown as a hyperlink in list tables and publications.

Image

Image columns can only store images from your WordPress media library. The plugin generates an img tag for this type of media in list tables. Images can be added in a data entry form in edit mode. In view mode an img tag is added to the form.

Image URL

Stores a static image url. The url can be entered in the data entry form of the table, and is shown as an image in list tables and publications.

Video

Video columns can only store video from your WordPress media library. The plugin generates an video shortcode for this type of media in list tables. Video can be added in a data entry form in edit mode. In view mode an video shortcode is added to the form.

Multiple and single media columns

The plugin supports multiple as well as single media columns:

  • NUMBER columns are handled as single media columns
  • VARCHAR columns are handled as multiple media columns

Single media columns can only save only one media id. Multiple media columns can save as many media id’s as you like. The width of your char column determines the maximum number of id’s that can be stored. Make sure your column is wide enough!

Column format examples

  • column “bike_photo bigint(20) unsigned” can store one image or attachment
  • column “bike_attachments varchar(200)” can store multiple images or attachments untill there is no more space left

Notes

  • The association with the WordPress media library will only work within the plugin!
  • Data entry for media columns is only available within the WordPress dashboard. Shortcode usage on web pages offers supports for WordPress media columns in list tables only.

A real time example of a publication using WordPress media library integration for an Attachment and an Image column is shown below.

BrandBrand TypeColorPhotoAttachmentsPriceLicence PlateCategoryFuel TypeMileageEngine CapacityNo Cylinders
BrandBrand TypeColorPhotoAttachmentsPriceLicence PlateCategoryFuel TypeMileageEngine CapacityNo Cylinders

Inline editing

Inline editing is a premium feature which allows users to edit table data in an Excel like manner. Adding inline editing to a table column is as simple as enabling the “Edit” checkbox as show on the image below (click to enlarge). How inline editing is handled depends on the column type.

Inline editing example (click to enlarge)

Inline editing – text and numeric columns

These column types are handled as normal text and numeric columns. The input item contains an icon to save and an icon to revert changes (see images below). A numeric check is performed for numeric columns.

Inline editing – date and time columns

Date and time columns can be entered using the date time picker which is available for data entry forms as well.

Inline editing – checkboxes

Like in plugin data entry forms, columns of data type tinyint(1) are converted to a checkbox, which provides a natural enable/disable user interface.

Inline editing – listboxes

Columns of data type enum are converted to listboxes (see column Gender in example below). Columns of data type set are converted to multiselectable listboxes (see column Multilist in example below).

Inline editing – lookups (Data Projects only)

When inline editing is enabled on a lookup column in a Data Project, the plugin automatically generates a listbox for the lookup column.

Inline editing limitations

  • Inline editing is not available for tables that have no primary or unique key.
  • Inline editing is not supported for primary key columns. If a table has no primary key, this rule applies to the unique key which is being used for data manipulation.
  • Inline editing is not supported for WordPress media library columns.
  • Inline editing works on existing rows only. It cannot be used to add new rows to a table.

Was this article helpful to you? Yes No

Leave a Reply

Your email address will not be published. Required fields are marked *

eleven − six =