GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




Lnk genopro to TNG (generic hyperlink)

Click to view RSS...
Author
Posted Saturday, January 20, 2024 - Post #43680
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Forum Members

Last Login: Sunday, April 28, 2024
Posts: 33, Visits: 229
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 
https://neptis.be/tng/getperson.php?personID=I193&tree=tree13

a generic link would be 
https://neptis.be/tng/getperson.php?personID=I#&tree=tree13

Where # is the ID of the individual in the original gedcom 

(This is the way Genealogica Grafica links its individuals in charts to individuals in external programs, see: Descendants of Doctor Reding – Doctor Reding and his family (neptis.be))

Thank you in advance

Edited: Saturday, January 20, 2024 by Olivierm
Posted Sunday, January 21, 2024 - Post #43688
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 41 minutes ago
Posts: 3,343, Visits: 25,631
This can be achieved by using the Custom Tag '_Narrative' to specify extra content for an Individual's Narrative Report Page.  

https://support.genopro.com/Uploads/Images/aecc5813-d0fa-40b5-b38d-554e.jpg


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.

https://support.genopro.com/Uploads/Images/45d5a649-1eab-4ebc-bbbd-97cd.jpg


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.

https://support.genopro.com/Uploads/Images/f1a83509-140e-4797-957e-f384.png


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Sunday, January 21, 2024 - Post #43689
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Forum Members

Last Login: Sunday, April 28, 2024
Posts: 33, Visits: 229
Thank you so much !
Posted Thursday, February 1, 2024 - Post #43767
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Forum Members

Last Login: Sunday, April 28, 2024
Posts: 33, Visits: 229
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?
Posted Sunday, February 4, 2024 - Post #43771
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 41 minutes ago
Posts: 3,343, Visits: 25,631
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="([^"]*)">Wink(.*?)(?=<\/Individual>Wink
 

(Annoyingly This forum's rich text editor has replaced ) with Wink in the above !!! )

and replace with


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&amp;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: 

https://support.genopro.com/Uploads/Images/f0fe9a24-3da5-4f38-ab5b-4bc2.png


'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
Posted Sunday, February 4, 2024 - Post #43772
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Forum Members

Last Login: Sunday, April 28, 2024
Posts: 33, Visits: 229
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&amp;tree=tree13$4">


should be
$1$3<Hyperlink Action="External">https://neptis.be/tng/getperson.php?personID=$2&amp;tree=tree13$4"></Hyperlink>


I am, again deeply impressed by the quality of this program, and by your knowledge and support.







Edited: Sunday, February 4, 2024 by Olivierm
Posted Sunday, February 4, 2024 - Post #43773
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 41 minutes ago
Posts: 3,343, Visits: 25,631
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 

 https://support.genopro.com/Uploads/Images/59bc4879-3a2b-43d9-9acf-4ba1.png


'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
Posted Sunday, February 4, 2024 - Post #43774
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Forum Members

Last Login: Sunday, April 28, 2024
Posts: 33, Visits: 229
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
Posted Monday, February 5, 2024 - Post #43778
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 41 minutes ago
Posts: 3,343, Visits: 25,631
1. Use link from Individual's page to zoom in

https://support.genopro.com/Uploads/Images/3caaa04b-7ff8-400b-ad96-2a7c.png






2. Still 'Work In Progress' Unsure

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"
Posted Monday, February 5, 2024 - Post #43779
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Forum Members

Last Login: Sunday, April 28, 2024
Posts: 33, Visits: 229
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 Smile

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


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse