Mephisto Style Assets for Frog CMS

Blog Projects
PHP Frog

Note! I do not maintain this plugin anymore. For latest version check David’s GitHub repository.

This plugin adds Mephisto style asset management to Frog CMS. You can drag thumbnail to body text to insert full URL to image.

Install

Make assets folder into your document root.

cd /path/to/document/root
mkdir assets
chmod a+w assets

Copy plugin files to frog/plugins/assets/ folder. If you do not have Git use download link instead.

cd frog/plugins/
git clone git://github.com/tuupola/frog_assets.git assets

You also need Peter Gassners excellent Image Resize plugin and my jQuery and jQuery UI plugins. Make sure you have latest version of all plugins.

Again if you do not have have git use download link for jQuery, jQuery UI and Image Resize and unpack them manually.

cd frog/plugins/
git clone git://github.com/naehrstoff/image_resize.git image_resize
cd frog/plugins/
git clone git://github.com/tuupola/frog_jquery.git jquery
cd frog/plugins/
git clone git://github.com/tuupola/frog_jquery_ui.git jquery_ui

Go to admin and enable Assets and Image Resize, jQuery and jQuery UI plugins.

NOTE! If you are using Page not found plugin disable and then re-enable it. This makes it run as last plugin on the page and fixes compatibility issue with Image Resize

Now you are set to go.

Usage

Assets tab includes simple interface for uploading images or other files. You can delete an asset by dragging it to trashcan.

When editing a page you can drag an asset to textarea. Full URL to asset will appear.

By default files are uploaded to assets folder. If you need more folders you can create them from Assets plugin settings.

NOTE! When adding a folder plugin tries to create it for you. If it fails you will be notified and you must create the folder manually. Also when you remove a folder from settings it will NOT be deleted from server automatically.



When asking a question please include an URL to example page where the problem occurs. If you have longer code examples please use pastie.org.
CATEGORIES
Built using the awesome Flat UI Pro framework by Designmodo.

© 2013 Mika Tuupola.