Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Our editors rely on a handful of toolbar buttons that were removed in Arbortext 7. I have most of them replaced, but I still need to tweak one of them.
I've been digging through the Arbortext 7 Customizing Guide trying to figure out how to create a new toolbar toggle button that restores the Document Map button that toggles between Document Map view and Normal view. I haven't found a solution yet and thought someone here might have done this already. I currently have a button that shows the Document Map view, but in order to duplicate the functionality of the button as it existed in Arbortext 5, it needs to toggle between Document Map and Normal views. Has anyone done that yet or know how to create such a button?
Here's one of the custom toolbars I assembled with the Document Map button first in the set:
<toolbar id="toolbar_Randy_Views" name="GC Views" x="50" y="25"><?Pub Dtl?>
<button command="ViewDocmap" id="Toolbar_Views_Randy"
image="imageDocumentMap" statustext="Document Map"
tiptext="Document Map"></button>
<button command="SyncOtherPane" id="Toolbar_Views_Randy"
image="imageSyncViews" statustext="Synchronize Views"
tiptext="Synchronize Views"></button>
<button command="WindowSplitLeft" id="Toolbar_Views_Randy"
image="imageLeftRightSplit" statustext="Left-Right Split"
tiptext="Left-Right Split"></button>
<button command="WindowSplitAbove" id="Toolbar_Views_Randy"
image="imageTopBottomSplit" statustext="Top-Bottom Split"
tiptext="Top-Bottom Split"></button>
</toolbar>
Solved! Go to Solution.
Hi Randall,
Depending on how you want to do it, the commands still exist in the 7.0 stream, in the commands.acl core file.
I found the following:
alias ViewNormal set -local view=edit
alias ViewDocmap set -local view=docmap
alias ViewColumnView set -local view=column
alias ToggleDocmap toggle_docmap()
alias ViewToggleDocmap {
if (option('view')=='docmap') {
set -local view=edit
} else {
set -local view=docmap
}
So you could just use the toggle, or have separate buttons for the different views if that's perferable.
Hi Randall,
Depending on how you want to do it, the commands still exist in the 7.0 stream, in the commands.acl core file.
I found the following:
alias ViewNormal set -local view=edit
alias ViewDocmap set -local view=docmap
alias ViewColumnView set -local view=column
alias ToggleDocmap toggle_docmap()
alias ViewToggleDocmap {
if (option('view')=='docmap') {
set -local view=edit
} else {
set -local view=docmap
}
So you could just use the toggle, or have separate buttons for the different views if that's perferable.
Thank you, Rafael! The toggle command works perfectly. And thanks for the tip about the commands.acl file. I was finding commands by digging through the menu config files, and the menu doesn't contain the toggle command. I appreciate your help.