|
3. Transformations A transformation overrides the way a field is displayed in list 'view', and how the input field is displayed and processed on the insert/update forms. Custom transformations can be written to suit specific needs. phpMyCRUD has built-in transformations for: disp_as_blob - Displays a 'blob' field as an image rather than 'binary blob'. disp_as_image - Displays a field's data as a linked image. disp_as_link - Displays a field's data as a hyperlink. disp_as_select - Displays a select menu populated with data from another field. disp_as_dir_select - Displays a select menu populated with directories and/or file names. Example 3: Transformations (See it Live!) Some fields are now displayed as images and hyperlinks on the list view. The "title" field from the "genres" table is displayed as a drop-down select menu on the insert/update forms for the "albums" table.
|