Skip to main content
VikingCoder
Participant
September 13, 2024
Question

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

  • September 13, 2024
  • 1 reply
  • 352 views

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?

 

This topic has been closed for replies.

1 reply

Nancy OShea
Community Expert
Community Expert
September 14, 2024
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
VikingCoder
Participant
September 14, 2024

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 ...
BenPleysier
Community Expert
Community Expert
September 14, 2024

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 is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!