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

toolbars.xml: Can't add dw.getRecentFileList() and dw.saveDocumentAs()

New Here ,
Sep 13, 2024 Sep 13, 2024

Copy link to clipboard

Copied

I want to customize my toolbars.xml to add a "Recent File List" and "Save As" icon/option. After reading several Adobe docs, I thought I knew what to do but the:

  1. dw.getRecentFileList() does nothing
  2. dw.saveDocumentAs() gives an error (see screenshot below)

 

All I did was copy an existing button and make the desired changes. For example:

 

<button id="DW_OpenRecentFiles"
image="Toolbars/images/MM/viewoptions.png"
MMString:tooltip="DW_Open/button/tooltip" // Note: This has not been updated
domRequired="FALSE"
command="dw.getRecentFileList()"/>

 

<button id="DW_SaveAs"
image="Toolbars/images/MM/bcc.png"
MMString:tooltip="DW_SaveAll/button/tooltip" // Note: This has not been updated
command="dw.saveDocumentAs()"/>

 

What am I missing here?

 

Capture.PNG


Let your curiosity LEAD the way ...
TOPICS
How to

Views

165

Translate

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
Community Expert ,
Sep 13, 2024 Sep 13, 2024

Copy link to clipboard

Copied

quote

I want to customize my toolbars.xml...


By @VikingCoder

===========

I don't understand what you're trying to do or why, sorry.

 

Dreamweaver already has onboard tools for that.

Go to File > Open Recent  or Save As... (Ctrl + Shift + S).

 

 

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

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 ,
Sep 14, 2024 Sep 14, 2024

Copy link to clipboard

Copied

Hi. I appreciate the reply. This may be more of a personal preference 'thing' but I like a single click on an icon over multiple clicks through a menu to get to what you describe. If what you offer as "onboard tools" is the answer, then why have toolbars at all? "Save" is on a toolbar ... all I want to do is add "Save As" beside it ("Save All" is already there as well). My question is not about whether the tool should be in the toolbar; my question is how to make it work given the fact that I appear to be using the correct function. Any help with this will be appreciated. Thank you.


Let your curiosity LEAD the way ...

Votes

Translate

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
Community Expert ,
Sep 14, 2024 Sep 14, 2024

Copy link to clipboard

Copied

Not that I can help you out, only to say that this would have been a very useful exercise if Dreamweaver had kept its market dominance.

 

As it stands now, Dreamweaver is on life support and , knowing how Adboe works, the plug will be pulled in the very near future.

 

Even if Dreamweaver were to recover, any new version would overwrite the good that was done.

 

Advice: concentrate on something that is productive.

 

Wappler, the only real Dreamweaver alternative.

Votes

Translate

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
Community Expert ,
Sep 14, 2024 Sep 14, 2024

Copy link to clipboard

Copied

Customizable Keyboard Shortcuts --

https://helpx.adobe.com/dreamweaver/using/keyboard-shortcuts.html

 

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

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
Community Expert ,
Sep 16, 2024 Sep 16, 2024

Copy link to clipboard

Copied

LATEST

@VikingCoder for the SaveAs utility, since you have access to the original File_SaveAs script, why not directly point to it, something like :

<button id="DW_SaveAs"
image="Toolbars/images/MM/saveAs.png"
MMString:tooltip="DW_Save_As/button/tooltip"
file="Menus/MM/File_SaveAs.htm"
domRequired="FALSE"
update="onEveryIdle"/>


... Now, as you wisely point out, strings.js points to a binary... so more complex for the tooltip... but anyway it shouldn't bother for the use.

With regard to the recent files point, it seems to me that since the introduction of reopen files opened at DW launch, an internal mechanism has been modified, but you should be able to draw inspiration from the JS file File_RecentFiles

 

Please let us know of your work, very intersting...

Votes

Translate

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