|
|
|
|
Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.0
Last Login: Yesterday @ 12:43 PM
Posts: 1,596,
Visits: 32,537
|
Some time ago I showed how a djvu image can contain identification of people and also links to web pages. As my ISP lost all my original files, this no longer works. However I have now experimented to see if it is possible to plant an image into a GemoPro Report. If you have the djvu add-in, then try http://familytrees.genopro.com/appleshaw/djvu/default.htm If you do not have the browser plug-in it can be obtained from Lizardtech..This is a first attempt - proof of concept if you like. A small image is loaded into the home page and when you move the cursor over it, names appear. Clicking on a name brings the relevant page of data from the report. You have to use the back button to get back to the image - this is only first attempt. Hopefully most of the links work, although there are at least two where I have not yet found the relevant data and so you get an error message. The image is very small on first loading but can be zoomed, or use the 100% button to get a reasonable size. The code to load the image is This code is based on the example given in the Lizardtech help pages. I had problems getting the image in the correct place so that the URL entered into the djvu image was able to find the report data. The simplest way seems to put the image in the root directory of the customised skin. You need Djvu Solo editor to add the URL, which I obtained by loading the relevant page and copying the link location and cutting it back to the basic data. It would obviously be better to load the image where the .svg image appears so that the data can appear above the picture. This will involve getting to grips with the code.
|
|
|
|
|
Customers Important Contributors FamilyTrees.GenoPro.com Translator GenoPro version: 3.1.0.1
Last Login: Sunday, March 21, 2021
Posts: 716,
Visits: 12,927
|
IainTait (3/29/2007)
I hardly dare ask "Ron the Guru" to have a look at this idea as he has already produced so many amazing improvements to the report generator.  Have asked Ron already about this a few weeks ago and here is what he came up with: I have put something together that I believe satisfies your requirement. I have taken an existing generated file gmap_place.htm and changed it to provide a skeleton file for your name.htm files. The file multimedia.htm attached is an example with an embedded flash move, the GenoPro promo. The 2nd file 'multimedia1.htm' simply has a jpg taken from your familytrees site. This is to illustrate the resize feature that I have 'borrowed' from the Google Maps page, hence the reference to class 'googlemap' and id='GoogleMap'. These names must be used to make the resize work. Other media objects may possibly resize in this way (i.e. set their width & height to 100%). I could change the 'GoogleMap' reference to 'MultiMedia' in the skin if your think this feature would be popular. I have tested these htm files using a Source 'URL' field in a report and they work fine. Just replace the <object>...</object> with your own multimedia object. Also set the title and remove text 'Embed media file object here'. The background for the htm is taken from 'style.css' as you are aware.
Above is about 2 months old. Preciously I just had the DJVU file accessed directly from Source `URL` field, which can also work. The link to the individuals should be set to "Same Window", however will investigate further here. This htm file (please rename) is accessed again from the Source `URL` field. If you want to use a link, then both the htm file and the DJVU file need to be in the root directory of your skin. If not link is used the DJVU file can be placed into another folder, but the path in the htm file must be set properly.
Edited: Thursday, March 29, 2007 by
GenoProSupport
|
|
|
|
|
Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.0.1.5
Last Login: Saturday, March 14, 2020
Posts: 365,
Visits: 3,680
|
maru-san (3/29/2007)
This htm file (please rename) is accessed again from the Source `URL` field. If you want to use a link, then both the htm file and the DJVU file need to be in the root directory of your skin. If not link is used the DJVU file can be placed into another folder, but the path in the htm file must be set properly. Wow, that was quick ! : Thanks a lot, I will try and get my head around it all tomorrow as it is getting late. This generator thing just never stops to amaze me.
Edited: Thursday, March 29, 2007 by
GenoProSupport
|
|
|
|
|
Customers Important Contributors FamilyTrees.GenoPro.com Translator GenoPro version: 3.1.0.1
Last Login: Sunday, March 21, 2021
Posts: 716,
Visits: 12,927
|
Please note that this set up can also be used to publish images, flash files and video clips.
The width of the djvu file was set to 100%, whereas the height was set to 320 (pixels, not percentage) in my set up.
Edited: Thursday, March 29, 2007 by
maru-san
|
|
|
|
|
Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.0.1.5
Last Login: Saturday, March 14, 2020
Posts: 365,
Visits: 3,680
|
The 2nd file 'multimedia1.htm' simply has a jpg taken from your familytrees site. This is to illustrate the resize feature that I have 'borrowed' from the Google Maps page I tried the multimedia set up but can't get my image to show up in the new window as all I get is the title and below that thename of the image. Please could you post the part of the code in the above htm that deals with the image as I am obviously missing something.
|
|
|
|
|
Customers Important Contributors FamilyTrees.GenoPro.com Translator GenoPro version: 3.1.0.1
Last Login: Sunday, March 21, 2021
Posts: 716,
Visits: 12,927
|
Following is the code from the sample Ron prepared:
"h3 id='subtitle'>Put your Title Here/h3
"div style='text-align: center;' div class='googlemap' id='GoogleMap'> img src='yourpicture.JPG' width='100%' height='100%'/ /div"
Please replace the name `yourpicture` with the picture you want to show. You have to put the < and > into proper places.
Edited: Friday, March 30, 2007 by
maru-san
|
|
|
|
|
Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.0.1.5
Last Login: Saturday, March 14, 2020
Posts: 365,
Visits: 3,680
|
maru-san (3/30/2007) Following is the code from the sample Ron prepared:
[quote]
"h3 id='subtitle'>Put your Title Here/h3
"div style='text-align: center;' div class='googlemap' id='GoogleMap'> img src='yourpicture.JPG' width='100%' height='100%'/ /div"
Thanks for the code, unfortunately I can't get it to work, but I found the code below on appleshaw's web page at his link at the top of this page, which does work :-<object classid="clsid:0e8d0700-75df-11d3-8b4a-0008c7450c4a" width=100% height=100%> <param name="imageURL" value="sinclair-tait-family.djvu" > <embed SRC="sinclair-tait-family.djvu" type="image/x.djvu" width="100%" height="100%" zoom="100%"> </embed> </object> I would now like to know how to link the djvu to the people in the tree as I am no expert on link language and if possible make the image open in the bottom frame like the svgs. Though I don't have many group photos, I am trying to think of other possible uses of this djvu system which seems to have a lot of potential.
Edited: Friday, March 30, 2007 by
IainTait
|