Customize Elements in the Config.xml File


After completing this topic, you will be able to customize elements in the config.xml file.


Steps:

  1. You will customize XML elements to make functional changes to the Player and topic playback.

    Step 1
  2. Open the Player config.xml file in Notepad.

     

    Double-click the config.xml list item.

    Step 2
  3. You 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 3
  4. Select 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 4
  5. Select the section end code.

     

    Press the [Shift] key and click after the </configsection>  text for the TreeConfig section.

    Step 5
  6. Although 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 6
  7. Copy the selected text.

     

    Click the Edit menu.

    Step 7
  8. Click the Copy command.

    Step 8
  9. Switch to the skin.

     

    Click the WSG skin tab.

    Step 9
  10. Open the config.xml file in the skin.

     

    Double-click the config.xml list item.

    Step 10
  11. All 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 11
  12. Enter three blank lines.

     

    Press [Enter].

    Step 12
  13. Press [Enter].

    Step 13
  14. Press [Enter].

    Step 14
  15. Click in the first blank line above the </config> tag.

     

    Note: All element tags must appear between the beginning <config> and ending </config> tags.

    Step 15
  16. Paste the copied text.

     

    Click the Edit menu.

    Step 16
  17. Click the Paste command.

    Step 17
  18. Change the DefaultExpandLevel value from 1 to 3 to expand the outline to level 3.

     

    Click before the 1 in the DefaultExpandLevel value.

    Step 18
  19. Press the [Shift] key and click after the 1 in the DefaultExpandLevel value.

    Step 19
  20. Enter the desired information into the field. Enter

     a valid value
     e.g.
     "3"
    .

    Step 20
  21. We have removed the AutoExpandLimit and SearchResultLimit elements since we do not need to change these limits for the short WordPad Training outline.

    Step 21

  22. Switch to the Player config.xml.

     

    Click the Player config.xml Notepad window.

    Step 22
  23. We 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 23

  24. Select the entire line and indent for the section.

     

    Click at the beginning of the line for the <configsection name="PlayerConfig"> section.

    Step 24
  25. Press the [Shift] key and click at the end of the <configsection name="PlayerConfig"> value.

    Step 25
  26. Copy the selected text.

     

    Click the Edit menu.

    Step 26
  27. Click the Copy command.

    Step 27
  28. Switch to the WSG config.xml Notepad file.

     

    Click the WSG config.xml window.

    Step 28
  29. We have moved the </config> tag down. Paste the section name in the file.

    Step 29
  30. Paste the copied text in one of the blank lines above the ending </config> tag.

     

    Click the Edit menu.

    Step 30
  31. Click the Paste menu.

    Step 31
  32. Switch to the Player config.xml.

     

    Click the Player config.xml Notepad window.

    Step 32
  33. Scroll down to view the ShowFrameID value.

     

    Click the Vertical scrollbar scrollbar.

    Step 33
  34. To save time, we have selected and copied the ShowFrameID value for you.

    Step 34

  35. Switch to the WSG config.xml.

     

    Click the WSG config.xml Notepad window.

    Step 35
  36. Paste the copied value under the <configsection name="PlayerConfig"> tag.

     

    Click the Edit menu.

    Step 36
  37. Click the Paste command.

    Step 37
  38. Add a blank line after the pasted value.

     

    Press [Enter].

    Step 38
  39. Ending 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 39

  40. You 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 40
  41. Press the [Shift] key and click at the end of the ShowFrameID Off text.

    Step 41
  42. Enter the desired information into the field. Enter

     a valid value
     e.g.
     "ShiftF1"
    .

    Step 42
  43. Save the WSG config.xml file.

     

    Click the File menu.

    Step 43
  44. Click the Save command.

    Step 44
  45. We 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 45
  46. The 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 46

After completing this topic, you are able to customize elements in the config.xml file.