Manager plugin: favorite files/folders tab in the left tree.
- Plugin creates a tab in the Manager left menu, next to the documents tree.
- Add any files/folders to favorites.
- List is automatically sorted alphabetically.
- Click opens file edit (with focus on textarea) or folder view.
- Favorites are stored in the browser (in
localStorage), to avoid overloading the database (write in the support chat, if you prefer the database, we will think about this).
- PHP >= 7.4
- (MODX)EvolutionCMS >= 1.4
- (MODX)EvolutionCMS.libraries.ddTools >= 0.69
Just run the following PHP code in your sources or Console:
// Include (MODX)EvolutionCMS.libraries.ddInstaller
require_once(
$modx->getConfig('base_path')
. 'assets/libs/ddInstaller/require.php'
);
// Install (MODX)EvolutionCMS.plugins.ddManagerFavorites
\DDInstaller::install([
'url' => 'https://github.com/DivanDesign/EvolutionCMS.plugins.ddManagerFavorites',
]);- If
ddManagerFavoritesis not exists on your site,ddInstallerwill just install the plugin. - If
ddManagerFavoritesis already exists on your site,ddInstallerwill check it version and update it if needed. - After installation, set the system event
OnManagerTreeRenderin the plugin settings (ddInstallerdoes not yet support events).
- Plugin name:
ddManagerFavorites. - Description:
<b>1.0</b> Manager favorite files/folders tab.. - Category:
Core → Manager. - Parse DocBlock:
no. - Plugin code (php): Insert content of the
ddManagerFavorites_plugin.phpfile from the archive. - System Events:
OnManagerTreeRender.
- Create a new folder
assets/plugins/ddManagerFavorites/. - Extract the archive to the folder (except
ddManagerFavorites_plugin.php).