Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / Addon Admin Tools / Media Library [Support Thread]

Media Library [Support Thread]

Started by balihr on 29 Nov 2026, 5:58 PM · Views: 16

Results 1 to 1 of 1
29 Nov 2026, 5:58 PM
#1
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,827
Plugin Contributions:
29

Post #1 by balihr

A WordPress-style media library for the Zen Cart admin. Browse your catalog images/ folder (and every subdirectory), upload new files (drag-and-drop supported), create folders, and insert images or PDF links into textareas, TinyMCE, or CKEditor - with alt text, dimensions, and optional resize-on-insert.

Editing product descriptions, EZ-Pages, banners, and other HTML content in Zen Cart usually means typing image paths by hand, switching to FTP, or leaving the editor to hunt through images/. ZX Media Library fixes that with a full-screen admin modal that feels familiar if you have ever used WordPress Media Library.

On any admin page with an eligible textarea, an Insert Media button appears. One click opens the library: browse folders, search, upload, select one or more files, set alt text and dimensions, and insert clean HTML into a plain textarea, TinyMCE, or CKEditor.

Core Features

  • Global admin injection: Works across admin pages automatically - no dedicated menu page and no core file edits.
  • Folder tree navigation: Permanent left-hand tree of images/ with expand/collapse, folder icons, and per-folder file counts.
  • Safe large-folder handling: Paginated browsing (60 files per page by default) plus in-folder search so big directories stay responsive.
  • Upload & create folders: Upload one or many files, drag-and-drop onto the grid, and create nested folders relative to the current path.
  • Single or bulk select: Default single-select for speed; toggle Bulk Select to pick multiple items with click (and Shift+click ranges).
  • Insert options panel: Alt text (single or per-file for multi-select), width/height with lock-aspect-ratio, display-only sizing or create a resized file on insert, JPEG/WEBP quality, and PDF new-tab option.
  • Editor support: Inserts at the caret in plain textareas and into active TinyMCE / CKEditor instances.
  • Superuser move & delete: Drag selected files onto a folder to move them, or delete with an explicit in-use warning. Regular admins can browse, upload, create folders, and insert.
  • Path sandboxing: All operations stay under the catalog images directory; parent-path traversal is blocked.

Insert Options in Detail

  • Alt text: For one selected file, edit a single alt field. For multiple files, a per-file alt list appears instead.
  • Dimensions: Optional width/height. With aspect ratio locked, typing one side calculates the other from the source image.
  • Display mode: Adds width/height attributes without changing the original file.
  • Resize mode: Creates a sibling file such as myimage-640w-480h.jpg and inserts that URL (requires PHP GD).
  • PDFs: Supported alongside images; inserted as links, with an optional "open in new tab" control when a PDF is selected.

Until the plugin is approved, it can be downloaded here: https://zenexpert.com/zen-cart-media-library

My site - Pro ZC Help
My portfolio | My plugins