After completing this topic, you will be able to customize elements in the config.xml file.
Steps:
You will customize XML elements to make functional changes to the Player and topic playback.
Step 1Open the Player config.xml file in Notepad.
Double-click the config.xml list item.
Step 2You want to copy the TreeConfig section to make changes so that the Player will open with the table of contents expanded to three levels.
Step 3Select the beginning of the line for the TreeConfig section to preserve the indentation.
Click at the beginning of the line for the <configsection name="TreeConfig"> section.
Step 4Select the section end code.
Press the [Shift] key and click after the </configsection> text for the TreeConfig section.
Step 5Although you only want to customize the DefaultExpandLevel element, it is easier to copy the entire section so that both the beginning and ending section tags are included.
Step 6Copy the selected text.
Click the Edit menu.
Step 7Click the Copy command.
Step 8Switch to the skin.
Click the WSG skin tab.
Step 9Open the config.xml file in the skin.
Double-click the config.xml list item.
Step 10All added elements must be placed between the beginning <config> tag in the file and the ending </config> tag.
Enter three lines to push the ending </config> tag down.
Click at the beginning of the last line, </config> in the file.
Step 11Enter three blank lines.
Press [Enter].
Step 12Press [Enter].
Step 13Press [Enter].
Step 14Click in the first blank line above the </config> tag.
Note: All element tags must appear between the beginning <config> and ending </config> tags.
Step 15Paste the copied text.
Click the Edit menu.
Step 16Click the Paste command.
Step 17Change the DefaultExpandLevel value from 1 to 3 to expand the outline to level 3.
Click before the 1 in the DefaultExpandLevel value.
Step 18Press the [Shift] key and click after the 1 in the DefaultExpandLevel value.
Step 19Enter the desired information into the field. Enter
We have removed the AutoExpandLimit and SearchResultLimit elements since we do not need to change these limits for the short WordPad Training outline.
Step 21Switch to the Player config.xml.
Click the Player config.xml Notepad window.
Step 22We want to copy the ShowFrameID element, which is near the end of the section; however, we also need the PlayerConfig section tags.
Rather than copy the entire section for just one tag, we are going to copy the beginning section tag and the element tag separately.
You can copy the entire line if you want to preserve the indentations. As long as elements are under the correct section name, they do not have to be indented, but the indentations help to group and organize them. After pasting an element, you can use the TAB key to indent tags.
Step 23Select the entire line and indent for the section.
Click at the beginning of the line for the <configsection name="PlayerConfig"> section.
Step 24Press the [Shift] key and click at the end of the <configsection name="PlayerConfig"> value.
Step 25Copy the selected text.
Click the Edit menu.
Step 26Click the Copy command.
Step 27Switch to the WSG config.xml Notepad file.
Click the WSG config.xml window.
Step 28We have moved the </config> tag down. Paste the section name in the file.
Step 29Paste the copied text in one of the blank lines above the ending </config> tag.
Click the Edit menu.
Step 30Click the Paste menu.
Step 31Switch to the Player config.xml.
Click the Player config.xml Notepad window.
Step 32Scroll down to view the ShowFrameID value.
Click the Vertical scrollbar scrollbar.
Step 33To save time, we have selected and copied the ShowFrameID value for you.
Step 34Switch to the WSG config.xml.
Click the WSG config.xml Notepad window.
Step 35Paste the copied value under the <configsection name="PlayerConfig"> tag.
Click the Edit menu.
Step 36Click the Paste command.
Step 37Add a blank line after the pasted value.
Press [Enter].
Step 38Ending section tags are not specific to the section.
To add an ending tag for the PlayerConfig section, you can either type </configsection> under the ShowFrameID element or copy the </configsection> ending tag from the TreeConfig section above and paste it. To save time, we have added this value for you.
Step 39You can change the value of the ShowFrameID element to "On", which always shows frame IDs when you play a topic, or you can assign a toggle key that shows and hides the frame ID.
Change the value of the ShowFrameID element to toggle on and off with "ShiftF1".
Click before the ShowFrameID Off text.
Step 40Press the [Shift] key and click at the end of the ShowFrameID Off text.
Step 41Enter the desired information into the field. Enter
Save the WSG config.xml file.
Click the File menu.
Step 43Click the Save command.
Step 44We have published the outline with the WSG skin.
The Player opened with the outline expanded to three levels. The Work with Views section in the Editing Basics module is not expanded because this section is the fourth level in the outline.
Step 45The frame ID switches between showing and hiding when the user presses the SHIFT+F1 key combination.
The frame ID remains on for all frames until the user turns it off.
Step 46After completing this topic, you are able to customize elements in the config.xml file.