ExpressionEngine addons

NB Show custom field data

Description

Shows custom field data in the Edit menu of the Control Panel. Does this happen to you?

  • You build multilingual sites using the entry title for one language, and another custom field for the other language. You would like to easily see if a translation has been already written in that custom field, or check what the translation is.
  • You create entries, but leave the body blank to be filled out later. You would like to easily see if the body has been filled out, or check what the content is.

Of course, you could search for this information on your site by displaying the corresponding template, or you could access this information by selecting individual entries, one-by-one, in the Edit section of the Control Panel. However, wouldn't it be nice if you could see custom field data from multiple entries directly in the "Edit Weblog Entries"? This is what the NB Show custom field data extension does. It displays custom field data of entries in the Edit Weblog Entries page. The custom fields to display can be set for each weblog.

Usage

In Admin » Utilities » Extensions manager » NB Show custom field data » settings, select the custom field to be displayed in the Edit section for each weblog.

Display Options

Display type

If the field is an nGen File Field or FF Matrix, data can be displayed as a downloadable link or a matrix, respectively. Selecting "Text" will show data as it is stored in the database.

Display options

  • Text » # of characters to display: You can reduce the number of characters displayed in the Edit section by entering the number of characters to display. Leaving the field blank will show all characters.
  • File » File upload directory: You can select what upload directory to use when retrieving file data. If the wrong directory for the custom field is selected, nothing is displayed in the Edit section.
  • FF Matrix » Display how many rows?: You can reduce the number of FF matrix rows displayed in the Edit section by entering the number of rows to display. Leaving the field blank will show up to 1000 rows (if present).

Display field name?

You may display the custom field name in brackets (eg. { custom_field }) in the Edit section by checking the box.

Display field label?

You may display the custom field label in the Edit section by checking the box.

Number of custom fields

Starting with NB Show custom field data v.0.8, three custom field columns can be set for each weblog. The edit section will also show three columns. You can control the number of custom fields shown in the config.sys file, with the following parameter:

$conf['nb_custom_field_columns'] = 1;

In this case, only one custom field would be displayed in the edit and settings pages. After clicking "Submit", go to the Edit section of the Control Panel, and custom field data should be displayed on the right. Custom fields left blank do not display anything.

Installation

  1. Unzip NB_show_custom_field_data.zip
  2. Copy extensions/ext.nb_show_custom_field_data.php to your system/extensions folder
  3. Copy language/english/lang.nb_show_custom_field_data.php to your system/language/english folder
  4. Additionally, you may copy the language files in the french and japanese folders to your system/language/french and system/language/japanese folders, if they exist
  5. Log into your Control Panel, and activate the extension through Admin > Utilities > Extension Manager > NB Show custom field > Enable

Changelog

0.1

  • First non-public release
  • Displays one custom field in the Edit section. Weblogs not associated with the custom field show nothing

0.2

  • Modified extension settings form.
  • Custom fields can be set per weblog

0.3

  • First official release
  • Code cleanup and slight optimization
  • Extension settings dropdowns shows a default dash \"-\" if settings have not been set

0.4

  • Fixed a mysql error appearing if the gypsy extension has never been installed.
  • Added better table headers to the extension settings page
  • Light cleanup

0.5

  • Changes to the settings code
  • The extension now requires the jQuery for the CP extension to be enabled to function properly
  • New: nGen File field display type in settings page for nGen File field custom fields
  • New: FF Matrix field display type in settings page for FF Matrix custom fields
  • New: option for trimming character length for Text display type
  • New: option for file upload directory selection for File display type
  • New: option for number of rows to display for FF Matrix display type
  • New: Display field name option in Edit section
  • New: Display field label option in Edit section
  • Added French and Japanese language files
  • Code cleaning and commenting
  • Paypal donation button (and thank you in advance ^^)

0.6

  • Includes a few fixes for errors when Fieldframe field types have not yet been enabled
  • No more need to specify upload directory for File display type
  • New: option to limit the number of rows to show for FF matrix display type
  • New: options to show FF matrix field names and labels above the matrix
  • New: \"Image\" display type, based on upload folder containing at least one image file
  • New: Simple image thumbnail. Image size is set based on width in settings. This is only an image resize of the original image, no thumbnail file is created
  • New: Access to original file for Image and File display types
  • Settings form cleanup: Text in settings page should take less vertical space

0.7

  • Automatic version checking using LG Addon Updater, which must be installed for this function to work.
  • Added \"check for update\" setting
  • Some more cleanup

0.7.1

  • For better compatibility with certain server setups, changed PHP the command used to check if directory contains at least one image
  • Bug fixes and code simplification for determining image directories

0.8

  • New: Three custom field columns can be set for each weblog by default
  • New: Number of custom field columns can be set in config.php file as $conf[\'nb_custom_field_columns\'] = 1;
  • Minor: alternating row colors for settings page

0.8.1

  • Fix: No more SQL errors for users that do not have (or have never had) FieldFrame installed

0.8.2

  • Fix: No more errors for users that do not have (or have never had) nGen file field installed in FieldFrame
Creative Commons License