PDA

View Full Version : Reference Manual



flekhabren
April 12th, 2018, 03:28
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.

damned
April 12th, 2018, 11:45
<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

flekhabren
April 12th, 2018, 14:06
Thanks, I assume the second </subchapter_00> is a copy mistake and not a part of the code?

damned
April 12th, 2018, 14:57
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.

flekhabren
April 12th, 2018, 15:03
Thanks for the info. We use what is familiar in many cases.

flekhabren
April 12th, 2018, 20:46
Whats the difference in the data and index portions?

Talyn
April 12th, 2018, 20:54
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! :p But the tool he uses builds them this way and if I "fixed" it for him, he could no longer use that tool.

flekhabren
April 12th, 2018, 21:05
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?

Mortar
April 12th, 2018, 21:44
Here is the wiki on the "in-line".

https://www.fantasygrounds.com/wiki/index.php/Reference_Manuals

flekhabren
April 12th, 2018, 21:45
Thanks, I'll look that over

Mortar
April 12th, 2018, 21:48
Might help clear some of the confusion you have, the "in-line" formatting is easier to see the chunks of your data in relation to each other. Also make its far easier to add data or move it around if you need to.

flekhabren
June 5th, 2018, 19:12
I cant find it if I posted it else where, What is the xml code to reference the side menus? For example if I wanted a section in my reference manual that opened the Archetype list like the button on the sidebar of FG.