Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Getting StartedGetting StartedTextEditor does not see my moduleTextEditor does not see my module's image folder
Previous
 
Next
New Post
5/6/2011 3:59 AM
 

My module created a folder   (in Portals/PortalId/)  to store images , and I want to share this folder with built-in TextEditor, so that users (in the same portal) can use those images in their articles (to save storage space).

But I don't know why TextEditor doesn't see the module folder (in fact, there are many other folders)

 
New Post
5/7/2011 10:56 PM
 
There are at least two possible reasons why the HTML editor provider cannot see your image folder and it's contents:

1. If you created the images folder and/or uploaded files to it outside of the DotNetNuke file manager and did not use of the core FileUpload or URL control to perform the upload or use the core FileSystemUtils API to register the newly created folder and files, the DNN Folders and Files tables in the database do not contain the needed entries. You will need to either use the Recursive Sync command in the Admin --> File Manager to create the proper table entries or change your folder addition and file upload code to make use of DotNetNuke controls and folder/file system API's.

2. The folder and files have been properly registered in the DNN Folders and Files tables but the role(s) to which the users editing content with the HTML editor provider have not been granted the necessary Browse Folder and/or Open Files In Folder permissions. This can be done in the Admin --> File Manager for the newly created folder or programatically if your module will be creating additional folders on a regular basis.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
5/15/2011 9:50 PM
 
thank you very much. your reply are always so succinct, very informative

I look up FileSystemUtils.AddFile method in the API documentation, but most of the time, I get the red message says that XML Doc is missing, like this:

[Missing documentation for "M:DotNetNuke.Common.Utilities.FileSystemUtils.AddFile(System.String,System.Int32,System.String,System.String,System.String)"]

and how I (as a beginner) figure out what to feed that method

public static void AddFile(
string FileName,
int PortalId,
string Folder, <--this one, very confusing
string HomeDirectoryMapPath,
string contentType <-- this one
)
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedTextEditor does not see my moduleTextEditor does not see my module's image folder


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out