DICE PACKS BUNDLE
  1. #1

    Links in ref manual.

    Greetings. It is likely I have missed something, somewhere. What I believe I am doing is creating 'inline' reference pages. I would like the first page of a subchapter to be an overview and have links to specific pages. I have highlighted the place I think I should be putting the link reference, along with the refpage I'm trying to use. I have tried various incarnations of this, including listing each parent tag in dot notation (reference.referencemanual.chapters.chapter_01.sub chapters.subchp1.refpages.refpage_001) with and without "@5E Expanded PHB" (the name of the thing) and various combinations of those things. Most times I get a box to pop up, but it is always empty, other times I get errors (which seemingly makes me think I am sometimes close to an answer). Any help would be appreciated. Also, this is my first attempt at doing this so I might need more verbose explanations for 'common' things.

    My basic XML is

    <reference>
    <referencemanual>
    <chapters>
    <chapter_01>
    <subchapters>
    <subchp1>
    <refpages>
    <refpages>
    <refpage_000>
    <listlink type="windowreference">
    <class>reference_manualtextwide</class>
    <recordname>..</recordname>
    <description field="name" />
    </listlink>
    <name type="string">The Order of Combat</name>
    <blocks>
    <combatorder>
    <blocktype type="string">text</blocktype>
    <text type="formattedtext">
    <link type="windowreference" class="reference_manualtextwide" recordname="refpage_001"><b>Combat:</b> Surprise</link>
    </text>
    </combatorder>
    </blocks>
    <keywords type="string"></keywords>
    </refpage_000>
    <refpage_001>
    <listlink type="windowreference">
    <class>reference_manualtextwide</class>
    <recordname>..</recordname>
    <description field="name" />
    </listlink>
    <name type="string">Surprise</name>
    <blocks>
    <surprise>
    <text type="formattedtext">
    <h>Surprise</h>
    <p>Here is the text.</p>
    </text>
    </surprise>
    </blocks>
    <keywords type="string"></keywords>
    </refpage_001>
    ... closing tags omitted

  2. #2
    Mortar's Avatar
    Join Date
    May 2014
    Location
    New Brunswick, Canada
    Posts
    1,127
    Blog Entries
    18
    If those two <refpages> tags are like that in your module this way it will always throw an error.

    Untitled2.jpg
    Ultimate License Holder

  3. #3
    Mortar's Avatar
    Join Date
    May 2014
    Location
    New Brunswick, Canada
    Posts
    1,127
    Blog Entries
    18
    You need to use referencemanualpage as the windowclass to get those links to work correctly. Try this:

    Code:
    <reference>
    	<referencemanual>
    		<chapters>
    			<chapter_01>
    				<subchapters>
    					<subchp1>
    						<refpages>
    							<refpage_000>
    								<listlink type="windowreference">
    									<class>reference_manualtextwide</class>
    									<recordname>..</recordname>
    									<description field="name" />
    								</listlink>
    								<name type="string">The Order of Combat</name>
    								<blocks>
    									<combatorder>
    										<blocktype type="string">text</blocktype>
    										<text type="formattedtext">
    											<link type="windowreference" class="referencemanualpage" recordname="reference.referencemanual.chapters.chapter_01.subchapters.subchap1.refpages.refpage_001"><b>Combat:</b> Surprise</link>
    										</text>
    									</combatorder>
    								</blocks>
    								<keywords type="string"></keywords>
    							</refpage_000>
    							<refpage_001>
    								<listlink type="windowreference">
    									<class>referencemanualpage</class>
    									<recordname>..</recordname>
    									<description field="name" />
    								</listlink>
    								<name type="string">Surprise</name>
    								<blocks>
    									<surprise>
    										<text type="formattedtext">
    											<h>Surprise</h>
    											<p>Here is the text.</p>
    										</text>
    									</surprise>
    								</blocks>
    								<keywords type="string"></keywords>
    							</refpage_001>
    						</refpages>
    					</subchp1>
    				</subchapters>
    			</chapter_01>
    		</chapters>
    	</referencemanual>
    </reference>
    Ultimate License Holder

  4. #4
    [QUOTE=Mortar;506167]If those two <refpages> tags are like that in your module this way it will always throw an error.

    Sorry, that was a mistype here on my part.

  5. #5
    I think I've had it setup like this before, and like a few other setups I get a pop-up box with no data.

    2020-05-07 07_02_48-Window.png

  6. #6
    The record name needs to always be a full path to the record you want to open. I noticed you didn’t have a full path in your original post.

    JPG

  7. #7
    Thanks

    I would swear that I'd tried it this way already, but obviously I missed something. It is working with the following.

    recordname="reference.referencemanual.chapters.cha pter_01.subchapters.subchp2.refpages.refpage_001@5 E Expanded PHB"

  8. #8

  9. #9
    I had seen mention of it in my searches. I'm pretty comfortable in XML and it seemed like the target for that is people who are not. Currently I have some snippets setup in VSCode that automate a good deal of the tedium and do some leg-work in notepad++ for formatting and tagging the actual text.

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
  •  
5E Character Create Playlist

Log in

Log in