close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

File Manager instance in HTML Editor

Thread began 8/08/2013 8:26 am by davegw | Last modified 8/15/2013 12:33 pm by davegw | 3582 views | 11 replies |

davegw

File Manager instance in HTML Editor

I can't figure out how to put a File Manager instance in HTML Editor 3. I have a few instances of HTML Editor text boxes in my Insert & Update forms where images are to be uploaded. The Getting Started tut & video only cover how to put a standalone File manager in a form.
I've setup the Site Settings, and chosen the File Upload components in the Editor. Please help.
Thanks
Dave

Sign in to reply to this post

Ray BorduinWebAssist

Did you add the add image option to the html editor menu? That is basically the access point.

As long as you enable file upload and add the image field option to the menu it should all just work. Maybe if you attach a copy of the page you are having difficulty with I can spot the issue.

Sign in to reply to this post
Did this help? Tips are appreciated...

davegw

Thanks Ray - now I see the <Browse Server> button next to URL in the Image Properties after selecting the Image icon in the editor.
I was looking for a file upload field in the toolbar. Now to fine-tune it!

One other problem is that in the Image Properties URL there is no separating forward slash between the directory set in Site Settings & the subdir set in the Editor instance. I have to insert the "/" manually. Is there a fix for this?
I'm using Data Bridge 1.1.4

Cheers
Dave

Sign in to reply to this post

Ray BorduinWebAssist

You may have to manually add the slash in the /webassist/kfm/configuration.php file...

just add : ."/"

to the end of the line that begins with:
$kfm_userfiles_output =

Sign in to reply to this post
Did this help? Tips are appreciated...

davegw

Perfect! I've now got it working dynamically so images are uploaded to a folder (name) based on a unique record accession number.

I placed this code between the recordsets and the WA Update Record SB:

<?php // setup dynamic folder for images in HTML Editor
$original = array(' ', '&', ',', '/');
$replace = array('', 'and', '', '');
?>
<?php $testpath=str_replace($original, $replace, strtolower($row_rsCaseDetail['accession_no'])); ?>
.
.
Then in the HTML Editor instance:

$CKEditor_config["uiColor"]):"%23eee")."&theme=webassist_v2&startup_folder=case_images/".$testpath;

It creates the folder if it does not exist.

I could have used a regex for stripping any unwanted characters, but this code works.

On a roll!

Cheers
Dave

Sign in to reply to this post

davegw

Just wondering if one can set a default folder in KFM to upload from?
The users will be uploading the files from this intermediate default folder to the working directory: /case_images/".$testpath
I need to control what they upload.

Another thing in KFM that I've just noticed is the working directory loses its path if 'viewing files as' is changed to 'list' from 'icons'
Then it stays on the base folder in 'Site Settings' if changed back to 'icons'.

Cheers
Dave

Sign in to reply to this post

Jason ByrnesWebAssist

No, the folder that the user uploads from is one that is one their system. PHP cannot view the client system, that would be a security hazard.

Sign in to reply to this post

davegw

Of course. I'm still testing on a development server, so forgot about that.
I just edited last post with another question.
Thanks
Dave

Sign in to reply to this post

Jason ByrnesWebAssist

you will need to set the upload folder in the /webassist/kfm/configuration.php file in the:
$kfm_userfiles_address

setting.

Sign in to reply to this post

davegw

The configuration.php file has this code so /images is the base folder:

$kfm_userfiles_address = '../../images';

The HTML Editor code for the working directory is:

$CKEditor_config["uiColor"]):"%23eee")."&theme=webassist_v2&startup_folder=case_images/".$testpath;

(Refer to post #5 above for explanation of the dynamic folder name: $testpath )

All is fine until I change to 'list' from 'icons' then working directory is lost.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...