|
Server : Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4 System : Linux server.jackjohnson.com 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64 User : jackjohn ( 502) PHP Version : 5.3.17 Disable Function : NONE Directory : /home/jackjohn/public_html/imagemanager/docs/ |
Upload File : |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Option: dropdown.include_path_pattern</title> <link href="css/screen.css" rel="stylesheet" type="text/css" /> </head> <body> <div class="header"> <h1>Option: dropdown.include_path_pattern</h1> </div> <div class="content"> <p>This is like an extra filer, you can filter the dropdown through this pattern to include folders from the dropdown list. Please be aware the you can get some rather strange behaviour regarding this option.</p> <p>In short, this option is a regex match for the paths displayed in the dropdown selection. One example configuration could be if you blank the filesystem.directory_exclude_pattern and include pattern, and set the dropdown.exclude_path_pattern to /images/i, you will then only display paths on your website that has "images" in the path of the folder.</p> <h3>An example of website folder structure.</h3> <div class="example"> <pre> /wwwroot/ /wwwroot/about <strong>/wwwroot/about/images</strong> /wwwroot/contact <strong>/wwwroot/contact/images</strong> /wwwroot/projects <strong>/wwwroot/projects/images</strong> </pre> </div> <br /> <h3>Example of configuration</h3> <div class="example"> <pre> $mcImageManagerConfig['filesystem.directory_exclude_pattern'] = ""; $mcImageManagerConfig['filesystem.directory_include_pattern'] = ""; <strong>$mcImageManagerConfig['dropdown.include_path_pattern'] = "/images/i";</strong> $mcImageManagerConfig['dropdown.exclude_path_pattern'] = ""; </pre> </div> <br /> <h3>The output in the dropdown would be.</h3> <div class="example"> <pre> /about/images /contact/images /projects/images </pre> </div> <br /> <h3>Example of usage in the config.php file:</h3> <div class="example"> <pre> $mcImageManagerConfig['dropdown.include_path_pattern'] = "/images/i"; </pre> </div> <br /> <h3>Example of usage in a mc_access file:</h3> <div class="example"> <pre> dropdown.include_path_pattern=/images/i </pre> </div> </div> <div class="footer"> <div class="helpindexlink"><a href="index.html">Help index</a></div> <div class="copyright">Copyright © 2005-2006 Moxiecode Systems AB</div> <br style="clear: both" /> </div> </body> </html>