New Response

« Return to the main article

You are replying to:

  1. I just imported all the HTMLArea files in the image resources in R5. I did this by clicking 'new image resource', putting an asterix in the file name field and clicking ok. This gives you access to files with any extension. You can then rename all the resources with the correct file path details. You can't copy them from the sample version 6 database believe me i tried that first. The only other difference is the @WebDbName function in the $HTMLHead field which you can replace with a reference to a shared field 'webDBPath' with:

    @ReplaceSubstring("/" + @ReplaceSubstring(@Subset(@DbName;-1) ; "\\" ; "/" ); " "; "+")

    as the formula.

    my $HTMLHead field formula:

    "<meta http-equiv=\"content-type\" content=\"text/html; charset=iso-8859-1\" />" + @NewLine + @If(@IsDocBeingEdited & !SuppressEditor; "<script type=\"text/javascript\">"+@NewLine+ " _editor_url = \'"+webDbPath+"/\';"+@NewLine+ " _editor_lang = \'en\';"+@NewLine+ " _edit_mode = true;"+@NewLine+ " _full_path = \""+webDBPath+"/\";"+@NewLine+ "</script>"+@NewLine+ "<script type=\"text/javascript\" src=\""+webDBPath+"/htmlarea.js\"></script>" + @NewLine ; "<script type=\"text/javascript\">"+@NewLine+ " _edit_mode = false;"+@NewLine+"</script>" )+ "<style type=\"text/css\" media=\"all\">" + webDBPath + "/global.css?OpenCssResource\";</style>" + @NewLine

    Hope that helps.

Your Comments