drugCMS

  • Status New
  • Percent Complete
    0%
  • Task Type Enhancement
  • Category Core
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version 2.0.4
  • Due in Version 2.1.0
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: drugCMS
Opened by Spider IT - Y-m-d
Last edited by Spider IT - Y-m-d

FS#86 - Create functions to display select boxes for directories and files from upload

We have functions createCategorySelect() and createArticleSelect().
To make module delevopment easier, we also need functions createDirectorySelect() and createFileSelect().

createDirectorySelect():
List all directories from the database, include a file extension list to filter by.
Possible uses:
- echo createDirectorySelect("CMS_VAR[0]", "CMS_VALUE[0]");
- echo createDirectorySelect("CMS_VAR[0]", "CMS_VALUE[0]", 'pdf');
- echo createDirectorySelect("CMS_VAR[0]", "CMS_VALUE[0]", array('pdf', 'txt'));

createFileSelect():
List all files given a directory or array of directories, include a file extension list to filter by.
Possible uses:
- echo createFileSelect("CMS_VAR[1]", "CMS_VALUE[1]", "CMS_VALUE[0]");
- echo createFileSelect("CMS_VAR[1]", "CMS_VALUE[1]", "CMS_VALUE[0]", 'pdf');
- echo createFileSelect("CMS_VAR[1]", "CMS_VALUE[1]", "CMS_VALUE[0]", array('pdf', 'txt'));
- echo createFileSelect("CMS_VAR[1]", "CMS_VALUE[1]", array('galleries/main/', 'header/'));
- echo createFileSelect("CMS_VAR[1]", "CMS_VALUE[1]", array('galleries/main/', 'header/'), 'pdf');
- echo createFileSelect("CMS_VAR[1]", "CMS_VALUE[1]", array('galleries/main/', 'header/'), array('pdf', 'txt'));
If an array of directories was specified, include the directory name in the select options texts.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing