|
|
Forum Members
Last Login: Tuesday, June 11, 2024
Posts: 33,
Visits: 233
|
Hello to all,
Is it possible to define a generic hyperlink format in genopro so that all individuals in a genopro tree in html would be automatically linked to their TNg equivalent ? Where the normal link would be |
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: Yesterday @ 10:07 AM
Posts: 3,382,
Visits: 25,940
|
This can be achieved by using the Custom Tag '_Narrative' to specify extra content for an Individual's Narrative Report Page. You can then use 'Custom Markup' to set the this content. (see https://familytrees.genopro.com/genome/CustomMarkupExample/default.htm) e.g. if set to <?phrase "Here is a link to the <a href='https://neptis.be/tng/getperson.php?personID={0}&tree=tree13' target='blank'>TNG Page</a>" ID?>
then the Narrative Report script will generate a page with this content substituting {0} in the template with the individual's ID e.g. You can assign this phrase to all individuals via Table Layout / Individuals and then using Find & Replace (right click on column) in the _Narrative column.
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
|
|
|
Forum Members
Last Login: Tuesday, June 11, 2024
Posts: 33,
Visits: 233
|
Thank you so much !
|
|
|
Forum Members
Last Login: Tuesday, June 11, 2024
Posts: 33,
Visits: 233
|
I come back on my former question.
I guess there is a way to create a similar URL in the External Hyperlink field of the individual, but I cannot find how?
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: Yesterday @ 10:07 AM
Posts: 3,382,
Visits: 25,940
|
GenoPro doesn't support find & replace in the Hyperlink field.
Another approach would be to inject the required XML into an XML export copy of your .gno file (i.e. via File / Export / Export to XML Format… ) You'll need a text editor that has 'regular expression' support. I use NotePad++e.g. if we look at part of the 'HarryPotter' XML export, <Individual ID="ind00021"> <Name>Mr Evans <Display>Evans</Display> <Last>Evans</Last> <Title>Mr</Title> </Name> <Position BoundaryRect="-56,216,-4,158">-30,190</Position> <Gender>M</Gender> <IsDead>Y</IsDead> <Comment>They were said to be proud to have a witch in the family. Showed up in the mirror of Erised.</Comment> <BloodPurity>Muggle born</BloodPurity> </Individual> and we search for (<Individual ID="([^"]*)">(.*?)(?=<\/Individual> | (Annoyingly This forum's rich text editor has replaced ) with in the above !!! )and replace with $1$3<Hyperlink Action="External"> https://neptis.be/tng/getperson.php?personID=$2&tree=tree13</Hyperlink>we end up with <Individual ID="ind00021"> <Name>Mr Evans <Display>Evans</Display> <Last>Evans</Last> <Title>Mr</Title> </Name> <Position BoundaryRect="-56,216,-4,158">-30,190</Position> <Gender>M</Gender> <IsDead>Y</IsDead> <Comment>They were said to be proud to have a witch in the family. Showed up in the mirror of Erised.</Comment> <BloodPurity>Muggle born</BloodPurity> <Hyperlink Action="External">https://neptis.be/tng/getperson.php?personID=ind00021&tree=tree13</Hyperlink></Individual> Obviously we can use 'Replace All' to add the required hyperlink to all individuals The resulting XML file can then be opened with GenoPro and resaved as .gno as required. This approach has the advantage that the link is available from the GenoPro GenoMap as well as from the SVG GenoMap in the Narrative Report. You will need to set the Search Mode options as follows:
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Edited: Sunday, February 4, 2024 by
genome
|
|
|
Forum Members
Last Login: Tuesday, June 11, 2024
Posts: 33,
Visits: 233
|
Fabulous,
Thank you 1000 X for the explanation, I also start understanding how Genopro works.
I guess that the replacement code $1$3<Hyperlink Action="External">https://neptis.be/tng/getperson.php?personID=$2&tree=tree13$4"> |
should be
I am, again deeply impressed by the quality of this program, and by your knowledge and support.
Edited: Sunday, February 4, 2024 by
Olivierm
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: Yesterday @ 10:07 AM
Posts: 3,382,
Visits: 25,940
|
Sorry, I had some difficulty with this forum's software messing with my post!
Not sure how it ended up with that code with $4 in it but I think I have now corrected the post. The replacement string should be
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Edited: Sunday, February 4, 2024 by
genome
|
|
|
Forum Members
Last Login: Tuesday, June 11, 2024
Posts: 33,
Visits: 233
|
Again, thank you, Ron
(and I did not even notice the $4 issue) You can see the result here: My Ancestors and Relatives (neptis.be)I have 3 questions left: 1. Can I use the Genomap independently of the narrative report, as an HTML page in its own right (to put on my site as kind of introduction instead of the Genealogica Grafica tree I use now )DONE: see: Descendants of Doctor Reding (Genopro) – Doctor Reding and his family (neptis.be). I would simply love to be able to define the zoom and center of the Genomap at the start (much too small) 2. Can I display the thumbnails of the pictures in the Genomap like I do now in Genopro with the picture mode ( I know you intended to investigate this) 3. Can I automatically allocate background colors (and borders) to the individuals depending on their occupations in the HTML Genomap? (e.g. if OCCU = Military --> Green,) I thank you in advance for your continuous support
Edited: Monday, February 5, 2024 by
Olivierm
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: Yesterday @ 10:07 AM
Posts: 3,382,
Visits: 25,940
|
1. Use link from Individual's page to zoom in
e.g. in this case it is: https://neptis.be/GenoProReport/genomaps/genomap0.htm?x=-3050,y=-275,highlight=true,toggle=SVG,name=I25612. Still 'Work In Progress' 3. Afraid not. If you are happy with a bit of VB Scripting then could possibly doctor {EN} XML Toolkit to achieve that. On another note, you you can see from your own genogram that GenoPro is not too good at auto-arranging large trees. You can achieve better results doing some manual adjustment where a partial auto-arrange can be useful. Also I strongly recommend breaking your tree down into branches as separate genomaps linked via internal hyperlinks.
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
|
|
|
Forum Members
Last Login: Tuesday, June 11, 2024
Posts: 33,
Visits: 233
|
Thank you again !
Indeed I discovered that Genopro is not good at auto-arranging trees ! Maybe AI will solve this in the future.
I am also disappointed that Genopro cannot easily define symbols or backgrounds based on imported gedcom tags. I am of course happy if a bit of VB scripting can achieve that, but I still have to learn VB
My goal is to create a descendant tree in HTM format where you could click buttons to highlight all individuals that have common features - like "working in the medical sector" or "good painter"
Not sure if this is possible.
Edited: Monday, February 5, 2024 by
Olivierm
|