DICE PACKS BUNDLE
Page 1 of 2 12 Last
  1. #1

    Reference Manual

    Could I get / see the opening and closing xml tags used in the CoC 7e reference manual portion?

    I wanted to try and get that menu / submenu look to my module data.

  2. #2
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,684
    Blog Entries
    1
    Code:
    <root version="3.1">
      <lists />
      <reference static="true">
        <refmanualdata>
          <refpage_credits>
            <name type="string">Credits</name>
            <group type="string">Call of Cthulhu</group>
            <subgroup type="string">About</subgroup>
            <text type="formattedtext" />
            <blocks>
              <id-00001>
    ...
              </id-00001>
            </blocks>
          </refpage_credits>
    ...
        </refmanualdata>
        <refmanualindex>
          <chapters>
            <chapter_00>
              <name type="string">Call of Cthulhu</name>
              <subchapters>
                <subchapter_00>
                  <name type="string">About</name>
                  <refpages>
    ...
                  </refpages>
                </subchapter_00>
    ...
                </subchapter_00>
              </subchapters>
            </chapter_00>
          </chapters>
        </refmanualindex>
      </reference>
    hth

  3. #3
    Thanks, I assume the second </subchapter_00> is a copy mistake and not a part of the code?

  4. #4
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,684
    Blog Entries
    1
    Quote Originally Posted by flekhabren View Post
    Thanks, I assume the second </subchapter_00> is a copy mistake and not a part of the code?
    Yes it is.
    Talyn has kindly informed me that I doing things the old way.
    He is the expert at Reference Manuals - however the codes above are from the source you requested.

  5. #5
    Thanks for the info. We use what is familiar in many cases.

  6. #6
    Whats the difference in the data and index portions?

  7. #7

    Join Date
    May 2016
    Location
    Jacksonville, FL
    Posts
    2,211
    Blog Entries
    7
    The "data" section is what renders on the refpage (large right side of the manual) while the "index" data is for navigation so the index (left pane) knows which page to render when you click one.

    The more streamlined "inline" method combines the two, that's why I commented to @damned this morning, not realizing he'd run around tattling on me! But the tool he uses builds them this way and if I "fixed" it for him, he could no longer use that tool.

  8. #8
    So for example If I wanted 2 listings of credits under the about menu I'd add a listing under data - <refpage_credits> with a name of credits 2, and set the group and sub group the same as the example above?

    then in the index portion I'd create a new subgroup for credits 2?

    what goes in the block - id portion then?

  9. #9
    Mortar's Avatar
    Join Date
    May 2014
    Location
    New Brunswick, Canada
    Posts
    1,127
    Blog Entries
    18
    Here is the wiki on the "in-line".

    https://www.fantasygrounds.com/wiki/...erence_Manuals
    Ultimate License Holder

  10. #10

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
FG Spreadshirt Swag

Log in

Log in