Plugin for indexing any kind of media within wxy
The default configuration is:
$config['media_index_ignore'] = array(
'/^\./', // .file
'/[#~]$/', // file# and file~
'/404\\' . CONTENT_EXT . '/', // 404.md
'/.php$/', // file.php
'/(plugins|themes)$/'
);
$config['media_index_accept'] = array();
The plugin provides a new ordering type
for $config['order_by']
:
$config['index_type_order'] = array('directory', 'markdown', 'image', 'unknown', '');
The index should enforce that the following data is generated for any kind of data:
title
- the data titleurl
- the data urldate
- the data date (either from metadata, or from file construction)type
- the data type such as image, markdown, directory or unknown
When loading data for a file, the plugin calls the following hook:
indexing_content($media, $headers, &$data)
Plugins can process the data for new file types through this hook.
They must simply generate the data for the file $media
and store
it in the array $data.
See the plugins:
media_index_directory.php
indexes directoriesmedia_index_image.php
indexes images and provides meta data for these including the sizemedia_index_markdown.php
indexes markdown files and provides embedded meta data