GetSimple Support Forum
Upload files from page editor - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Feature Requests (http://get-simple.info/forums/forumdisplay.php?fid=7)
+--- Thread: Upload files from page editor (/showthread.php?tid=5203)



Upload files from page editor - Carlos - 2013-09-24

(Don't know if this has been suggested before.)

I think it would be great if you could upload images (or any file) while editing a page. I suppose the filebrowser popup would be the place to add this.

Right now users must upload their files first (Files tab), only then they can select them in the page editor.


RE: Upload files from page editor - shawn_a - 2013-09-24

Agreed, I started working on a plugin or mod to do this but there were bugs in cke i could not work around.


RE: Upload files from page editor - yojoe - 2013-09-28

How about a modal window loading "files tab" in iframe ?
For the purpose of administering website it doesn't need to be superhtml5 solution.


RE: Upload files from page editor - hameau - 2013-09-28

(2013-09-24, 00:54:35)Carlos Wrote: Right now users must upload their files first (Files tab), only then they can select them in the page editor.
(2013-09-28, 08:34:26)yojoe Wrote: How about a modal window loading "files tab" in iframe ?

Or they can have two tabs open in the admin interface ...


RE: Upload files from page editor - datiswous - 2013-09-30

If I use yojoe's WJ Notepad plugin and put an Iframe in it pointing to the files page, I can upload files while staying in the edit page screen.

The notes popup is rather small though and doesn't seem to fully support the fluid layout setting.


RE: Upload files from page editor - xxdex - 2013-12-09

it will be a super and awesome plugin...
all of the community get-simple is waiting on it...
Wink


RE: Upload files from page editor - xxdex - 2014-02-10

problem solved Wink

step 1
download:
http://pgrfilemanager.sourceforge.net/
i'm was download from a site:
http://sourceforge.net/projects/pgrfilemanager/files/
(pgrfilemanagerv2.1.0.zip)

step 2
upload a file (after extraction)
to a:
admin/template/js/ckeditor/plugins/
it must be in folder named "pgrfilemanager"

step 3
in pgrfilemanager file edit a myconfig.php file

input a correct
PGRFileManagerConfig::$rootPath
PGRFileManagerConfig::$urlPath

if you have a trouble with it...
launch from a http file mypath.php
it/s in YOURSITE URL: /admin/template/js/ckeditor/plugins/pgrfilemanager/mypath.php...

you will se a url and rootpath..
input it in pgrfilemanager myconfig.php file
line 32:
PGRFileManagerConfig::$rootPath =
and line 37:
PGRFileManagerConfig::$urlPath =


step 4
in file edit.php
root of install getsimple: admin/edit.php
change
329 line:
filebrowserBrowseUrl : 'filebrowser.php?type=all',
on change (comment it)
//filebrowserBrowseUrl : 'filebrowser.php?type=all',
and 330 line:
filebrowserImageBrowseUrl : 'filebrowser.php?type=images',
on change:
filebrowserImageBrowseUrl : '<?php echo $fullpath; ?>admin/template/js/ckeditor/plugins/pgrfilemanager/PGRFileManager.php?langCode=en&type=Link',

save this file...

step 5
If you have a trouble with Thumb in pgrfilemanager...
read a:
http://pgrfilemanager.sourceforge.net/
configuration:
Remember to set write permission for PGRFileManager/PGRThumb/cache folder (necessary for thumbs generator)
add a 777 atribute for this folder "PGRThumb" and "PGRThumb/cache"


it's works!!!
keep enjoy