How to display and add file type and file sizes fields in your views using File Usage

Sometimes you have links to downloadable files and attachments displayed, and besides making that field a clickable link to the actual files for downloads you may also want to display the following file information alongside the link:

  • File Size
  • File Type

To do that using Views, you will need to be able to use and insert the relevant fields. These fields are available in as File Usage.

[SOLVED!] Notice: Undefined index: admin/content/file in media_browser_plus_menu_alter() (line 88 of ..\sites\all\modules\media_browser_plus\media_browser_plus.module)

Notice: Undefined index: admin/content/file in media_browser_plus_menu_alter() (line 88 of ..\sites\all\modules\media_browser_plus\media_browser_plus.module).

Drupal: Insert link or hyperlink an Image field with a custom link

Having problem in Drupal 7 in inserting or making an Image field clickable as a hyperlink to a custom URL either relative (internal) or absolute (external) link? Consider using the Image Link Formatter module. The module allows for:

[SOLVED] Drupal Filefield Sources Image File Browser Not Working

In my one of my Content Type, I have used File Field Sources and set an Image field to work as to insert Images thru:

  • uploading
  • browsing server and
  • attaching file from server (last two thru IMCE file browsing)
  • enabled IMCE file browsing settings permissions

However, when I go to the content and try to upload an image via file browsing and selecting existing image from server, it does not seem to work (being able to browse server files via IMCE file browser, but inserting selected image does not work or load):

Fix / What works

Drupal: Override display output of taxonomy term page (or per vocabulary)

If for some reason you do not need or want to use Views in generating custom output of a taxonomy term pages or listings, use template overwriting or overrides. Copy page.tpl.php into your theme folder and rename it page--taxonomy.tpl.php. Proceed customizing template page as needed, ensuring you clear browser and flushing registry cache.

Example below is how to disable node title of taxonomy term which is a duplicate of a preferred custom title, image and text entered in the term description field.

How to turn-off disable (or turn on and enable) Drupal maintenance mode and status using Drush command

To turn-off or disable (and vice-versa, to turn on and enable) Drupal 7 maintenance mode using Drush:

How to turn-off disable (or turn on and enable) Drupal maintenance mode and status via phpMyAdmin / database

To turn-off or disable (and vice-versa, to turn on and enable) Drupal 7 maintenance mode via phpMyAdmin, enter an SQL command in the field under the SQL tab:

To set website into maintanance mode:
UPDATE `variable` SET `value`='1' WHERE 'name' = 'maintenance_mode'

Change 'value' to '0' to take site out of maintenance mode

Click Go to execute command.

How to turn-off disable (or turn on and enable) Drupal maintenance mode and status by settings.PHP file without Drush

Without Drush support or access, how do you turn-off or disable (and vice-versa, to turn on and enable) Drupal 7 maintenance mode in settings.PHP file?

If you have FTP or SFTP access, you may:

My Favorite and Best Drupal 7 Modules

Here are some of my top-most favorite and most used Drupal 7 modules! and some reasons why I just love them!

Pages

Get reliable web hosting services

Recurring donation

Make Donation

  • Other: $

Donate now

Single donation

Make Donation

  • Other: $

Donate now