• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Add Class Tag

Frodie

Well-known member
I am seeing if I can add a new class tag with a 1st file. But IDK what I am doing. Any ideas?


<?xml version="1.0" encoding="ISO-8859-1"?>
<document signature="Hero Lab Structure">
<loadonce key="FTGY_Fantastic_Gallery_Tags"/>

<group id="ClassType">
<value id="FGMPCls" name="- Modern Classes -"/>
</group>

</document>
 
I'd recommend looking at how some are formatted in other systems, but if this is what you want:

Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<document signature="Hero Lab Structure">

<group
  id="ClassType">
  <value id="FGMPCLs" name="-Modern Classes"/>
  </group>

</document>

I don't think you need the loadonce line.
 
Thank you, but the error I get is:

File: FTGY_Fantastic_Gallery_Tags.1st (line 4) - Tag Group - Duplicate record encountered ('ClassType')
 
Have you tried just adding the <tag group="ClassType" id="FGMPCLs"/> to an item and see if it will compile? Some tag groups let you create new ones for them like that without using a first file. (Like the Custom Tag)
 
Yea, that just give this error:

File: FG_Modern_Path_3.user (line 2186) - Encountered unknown element tag 'tag'
 
Are you placing it in the right part of the user file? In an item, below fieldvals, before bootstraps? That seems like the kind of error when you have it in the wrong place.
 
The ClassType group already has a proper definition in one of our files, so Hero Lab won't let you define it again. If you want to add a new tag to an existing group, you'll need to define it on a thing (as AndrewD2 suggested), not as part of the definition of a tag group.
 
Yea, trying to add a new tag to a class type, I added it to the class, but I got this error:

File: class tag.user (line 13) - Thing 'cdsfsdgsrf' (dynamic tag) - Tag 'FGMPCLs' not defined

I know how to add a custom tag, but I want to add it to the classtype tag

Can that be done through a 1st file or a dat file?
 
ClassType is not a dynamic group, so a user cannot create new tags for it. If it were dynamic, AndrewD2's suggestion would work.
 
Back
Top