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

GenoPro Support Forum




How to customise your report

Click to view RSS...
Author Tailor your report without using a custom report skin _ edited 2015.04.02
Posted Tuesday, November 1, 2011 - Post #29265
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: 15 hours ago
Posts: 3,421, Visits: 26,448
You are almost there with your phrase.  I think what you need is 
{\br}{\U}{!0}[{?2} has][{?!2} had] profile on <a href="{10h}">facebook</a>.{\br}

The 'h' in {10h} tells the Report Generator that the input argument is already html encoded.  <?html?> is only used in text fields with the property dialogs of the objects. It cannot be used and is not required in phrase templates.

And yes, the same technique can be used for custom phrases for other objects as well as Individuals.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Tuesday, November 1, 2011 - Post #29275
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Customers
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Thursday, July 27, 2023
Posts: 42, Visits: 5,046
It doesn't work - html link was not created:

http://support.genopro.com/Uploads/Images/e2ecf4bc-78aa-49e0-ab16-e9e0.png
Posted Tuesday, November 1, 2011 - Post #29276
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: 15 hours ago
Posts: 3,421, Visits: 26,448
sorry, must have forgotten to engage my brain today!

To make this work you would need to set Individual custom tag to

<a  href="http://www.facebook.com/pavel.polak" >facebook</a> 

and the phrase to

 {\br}{\U}{!0}[{?2} has][{?!2} had] profile on {10h}.{\br}

Alternatively create a custom tag _Narrative and set it to the required text:

Pavel has a page on <?html?><a  href="http://www.facebook.com/pavel.polak" >facebook</a>


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Tuesday, November 1, 2011 - Post #29277
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: 15 hours ago
Posts: 3,421, Visits: 26,448
Further to my last post I have 'engaged my brain' to find a more satisfactory solution.  The result is a modified Code/Util.vbs file (see attached)  that adds extra functionality ot the Custom Phrase feature.  

This version adds extra preset arguments {5}=<  {6)=> and {7}=& to such phrases, allowing you to substitute {5h} for < and {6h} for > in Custom Phrases.

If you use this file in a custom skin you can now write say 
 {\br}{\U}{!0}[{?2} has][{?!2} had] profile on {5h}a href="http://www.facebook.com/{10}"{6h}facebook{5h}/a{6h}.{\br} 
as the phrase template and just set the custom tag to the relative page within facebook e.g. pavel.polak

I will include this revised Util.vbs at the next skin update.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


Edited: Tuesday, November 1, 2011 by genome
Posted Tuesday, November 1, 2011 - Post #29278
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Customers
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Thursday, July 27, 2023
Posts: 42, Visits: 5,046
It looks much better, but... :-)

Phrase is  {\br}{\U}{!0}[{?2} has][{?!2} had] profile on {5h}a href="http://www.facebook.com/{10}"{6h}Facebook{5h}/a{6h}.{\br} 

{10}=pavel.polak

it results in Chrome to:

http://support.genopro.com/Uploads/Images/388c2956-29ad-4c0d-9c9e-fdf4.png


There are two characters " in the begining and in the end of href param 

And when I look into source of generated page, there it looks as this:

<br />Pavel has profile on <a href=&quot;http://www.facebook.com/pavel.polak&quot;>Facebook</a>.<br /></li></ul>

So link doesn't work :-)
Posted Tuesday, November 1, 2011 - Post #29280
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: 15 hours ago
Posts: 3,421, Visits: 26,448
You are right of course, brain not fully engaged Blush  No substitute for a bit of testing. Just because it looks right does not mean it is right.

Hopefully this one will work. I have added {8}='  and {9}="  to the list of fixed arguments. so now we can write 
{\br}{\U}{!0}[{?2} has][{?!2} had] profile on {5h}a href={9h}http://www.facebook.com/{10}{9h} target={9h}_blank{9h}{6h}facebook{5h}/a{6h}.{\br}

I added target="_blank" as Facebook does not seem to like opening its pages in a frame.

Moral of this thread: Things are never quite as simple as they appear to be.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


Util.vbs (43 views, 83.33 KB)
Posted Tuesday, November 1, 2011 - Post #29281
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Customers
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Thursday, July 27, 2023
Posts: 42, Visits: 5,046
Now it works perfect, good job Smooooth
Thanks
Posted Wednesday, November 2, 2011 - Post #29294
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

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

Last Login: Saturday, April 12, 2025
Posts: 214, Visits: 3,619
From what I understand, the custom tags are valid only in file.gno in which they were created.
Must always be recreated? Or is there a way to make them permanent in GenoPro? A sort of option: Persistent = Yes / No, to be set when creating the tag.


Vittorino Lepore 
"
Se non porti almeno una soluzione, anche tu fai parte del problema" or "If you don't bring at least a solution, even you're a part of the problem"
Posted Thursday, November 3, 2011 - Post #29298
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: 15 hours ago
Posts: 3,421, Visits: 26,448
You can transfer all Custom Tags from one .gno to another by simply copying and pasting an object, such as a label, from one to the other as this drags over the custom tag definitions as well.  You can then delete the label from the target .gno, leaving the Custom Tags in place.  An 'Undo' action will remove the tags.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


Edited: Thursday, April 2, 2015 by genome
Posted Sunday, October 25, 2020 - Post #40869
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: 15 hours ago
Posts: 3,421, Visits: 26,448
I have made some improvements to the Custom Markup facility.  Most noteable is the 'container' or 'c' tag', an rework of the 'subsection' tag that now nested tags within it.  Details are documented on the home page of the sample report at https://familytrees.genopro.com/genome/CustomMarkupExample/default.htm and each of the individuals in that report has an example of Custom Markup.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse
Active: 2 - 1 guest, 0 members, 0 anonymous.
Refresh
No members currently viewing this topic!