Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

override the last location of the dw.browseForFolderURL

New Here ,
Apr 04, 2007 Apr 04, 2007

Copy link to clipboard

Copied

Hi all,

Is it possible to override the last location of the dw.browseForFolderURL()? So that when I call the dw.browseForFileURL() function would the open select dialog box at the folder I set via “myVar_Override”.
So the user would not have to browse for the right folder it just opens in the right location set via my “myVar_Override” they choose the file and its done.

example ?
“MMLastFolderLocation” = myVar_Override

TOPICS
Extensions

Views

614
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Apr 04, 2007 Apr 04, 2007

Copy link to clipboard

Copied

dreamweaver.browseForFolderURL('Title', 'Folder to Start In');

Remember that the "Folder to Start In" is expressed as file://URLofFolder

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 04, 2007 Apr 04, 2007

Copy link to clipboard

Copied

Hello envision3d,

Thank your for the reply.
It's not setting the "dreamweaver.browseForFolderURL()function I have an issue with.
It's once someone selects a folder with the above function the dw.browseForFileURL() will start at the last location
where the dreamweaver.browseForFolderURL() was called last and thats fine in most cases but I have a special need to be able to set the dw.browseForFileURL() starting point which does not have the parameter as does the "dreamweaver.browseForFolderURL()" function.

But I know the DW has to have the Location store in memory or in a file somewhere. I'd like to write a new location to the variable holding that information.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Apr 04, 2007 Apr 04, 2007

Copy link to clipboard

Copied

I am a little confused on what you are saying, but you can do what you want with the function I supplied. It doesn't matter which folder they opened last, you set the starting point in the function. So everytime that function is run, it will start in the folder you specified. Don't use dw.browseForFileURL(), use the dreamweaver.browseForFolderURL('Title', 'Folder to Start In').

Example:

dreamweaver.browseForFolderURL('Select a Folder', dreamweaver.getSiteRoot());

This will open the folder browser dialog with the default folder as the siteroot everytime no matter what folder they visited last.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 05, 2007 Apr 05, 2007

Copy link to clipboard

Copied

LATEST
HI envision3d,
I found a hack set the var " fileURL" will the set the path location I like every time.
it's not pretty but it gets the job done.

browseForFileURL("select","",false,false,"","",true,fileURL)

Thanks for your help.
Cheers,
Brian

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines