#ShortLink Plugin Installation
- ilias 5.0 or higher
- unibe /Customizing/global
- CtrlMainMenu Plugin
Clone the CtrlMinMenu plugin into Customizing/global/plugins/Services/UIComponent/UserInterfaceHook/CtrlMainMenu
git clone https://github.com/iLUB/CtrlMainMenu.git
Go to Administration -> Plugins, apply the updates and activate the CtrlMainMenu plugin and checkout the required version you need.
Configure the plugin, remove the unwanted entries like 'search', 'status' and 'settings'.
Clone the ShortLink repository to Customizing/global/plugins/Services/UIComponent/UserInterfaceHook/ and checkout the required version you need.
git clone https://github.com/iLUB/ShortLink.git
Go to Administration -> Plugins, apply the updates and activate the ShortLink plugin.
Got to Administration -> Plugins -> CtrlMainMenu -> Configure
- Add Entry
- Select Type 'ilCtrl'
- Click "Select Type"
- Fill in the fields required
- Add into filed GUI Classes (WITHOUT WHITESPACES): "ilUIPluginRouterGUI,ilShortLinkGUI"
- Click "Save and close"
There is a new ShortLink entry visible at the top menu of ILIAS.
It is important that the rewrite_mod is enabled (should be already the case).
Add the rewrite to the end of the rewrite rules in the current VHost.conf
RewriteRule ^/shortlink/([a-zA-Z0-9-]+)?$ https://ilias.yourDomain/Customizing/global/plugins/Services/UIComponent/UserInterfaceHook/ShortLink/redirect.php?shortlink=$1 [L]
If you work on localhost add:
RewriteRule ^/shortlink/([a-zA-Z0-9-]+)?$ http://localhost:80/Customizing/global/plugins/Services/UIComponent/UserInterfaceHook/ShortLink/redirect.php?shortlink=$1 [L]