Re: [Phpgedview-talk] Add new tags
Brought to you by:
canajun2eh,
yalnifj
From: Bin Z. <bzh...@gm...> - 2007-09-20 15:20:19
|
Hi John, Thanks for the response. It was helpful, but it still hasn't solved all my problems: We have a site that includes many GEDCOM files. We have a few pieces of fact or attributes for individual records that are common to all GEDCOM files on the site, but we could not find suitable GEDCOM tags for. They are not event-type facts. So I thought I could use the "FACT" tag defined in GEDCOM 5.5.1 for them. Because PGV does not include FACT by default (even I think it should, just like the EVEN tag to allow users to add custom facts), I need to find a way to include it in a "default" variable somewhere, so it becomes available for all GEDCOMs as a addable attribute/fact. I also would like to be able to add a 2 TYPE subtag to it. So far I have not been successful. I added FACT to $typefacts in functions_edit.php, thinking it would add a 2 TYPE subtag when adding a new FACT. I added a line to facts.en.extra.php. These two steps did not do anything. So I manually added FACT to $INDI_FACTS_ADD in one of the GEDCOMs (I wish I didn't have to do this...). Now FACT appeared in the pulldown, so at least I can add a FACT to an individual. However I am still not able to specify a TYPE, unless I add it using RAW GEDCOM editing. But I cannot expect regular user to know to edit raw GEDCOM tags... So what did I do wrong? What is the right way to make this work? Thanks! Bin On 9/19/07, John Finlay <Joh...@ne...> wrote: > > Hi Bin, > > > > There are several GEDCOM configuration option where you can add default > tags. You can also modify the code in functions_edit.php. Most of the tag > arrays are defined near the top of that file. > > > > You can add your own custom tags and it will be treated just like any > other GEDCOM tag. You just need to add it as an entry to the $factarray in > facts.en.php. > > > > Hope this helps, > > > > --John > > > > > ------------------------------ > > *From:* php...@li... [mailto: > php...@li...] *On Behalf Of *Bin Zhang > *Sent:* Wednesday, September 19, 2007 9:24 AM > *To:* php...@li... > *Subject:* [Phpgedview-talk] Add new tags > > > > I would like to be able to add new GEDCOM tags to my site GEDCOMs > (available to all GEDCOMs and newly-created ones). How would I go about? > One example would be to add FACT to the default list of tags. I Know I > could add it to the list for each GEDCOM individually, but I would like to > be able to add to the default list, so I don't have to add to new GEDCOM > files... > > Similarly, what would be the process of adding my own tags that are not > defined in GEDCOM specification? > > Thanks! > > Bin > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Phpgedview-talk mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpgedview-talk > > |