Web based family history software

Question magicsunday peddigree chart modified to open a window

More
1 year 3 weeks ago #1 by aim
Hi.
I m new here, i'm french, sorry for my english.
First thanks for this very nice script.

I use the module magicsunday peddigree chart. On click the module rebuild the tree from the individual, i would like to add on the individual box a link (an icon) to open a new window with the individual page information. I know PHP and HTML but not the javascript.
I try things but i didn't found.
If somebody can help me.

Thanks

Please Log in or Create an account to join the conversation.

  • Franz Frese
  • Away
  • Elite Member
  • Elite Member
More
1 year 3 weeks ago - 1 year 3 weeks ago #2 by Franz Frese
you may ask magicsunday by an issue at the corresponding github page.

Perhaps you have to replace his "function getUrl(baseUrl, generations)"
Last edit: 1 year 3 weeks ago by Franz Frese.

Please Log in or Create an account to join the conversation.

More
1 year 3 weeks ago #3 by hermann
This function is already implemented: click on a person in the tree, and now this person is the new base of the tree, click on this person again, and now the individual page of this person opens.

Hermann
Designer of the custom module "Extended Family"

webtrees 2.1.20 (all custom modules installed, PHP 8.2, MariaDB 10.6) @ ahnen.hartenthaler.eu

Please Log in or Create an account to join the conversation.

More
1 year 3 weeks ago #4 by aim
@Hermann
yes i know and i want to keep this tree function , but i need to directly opening a NEW window with a link too. This because it's easier to navigate between the tree and the page information.

Please Log in or Create an account to join the conversation.

More
1 year 3 weeks ago - 1 year 3 weeks ago #5 by aim
@Franz thanks i will search it
Last edit: 1 year 3 weeks ago by aim.

Please Log in or Create an account to join the conversation.

  • Franz Frese
  • Away
  • Elite Member
  • Elite Member
More
1 year 3 weeks ago #6 by Franz Frese
I would simply install the GVExport and use that. The click there on a person already opens in a new window.

Please Log in or Create an account to join the conversation.

  • fisharebest
  • Away
  • Administrator
  • Administrator
More
1 year 3 weeks ago #7 by fisharebest
You could use the solution from here: webtrees.net/faq/target/

Just change the logic that matches which URLs to handle.

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • Franz Frese
  • Away
  • Elite Member
  • Elite Member
More
1 year 3 weeks ago #8 by Franz Frese

You could use the solution from here: webtrees.net/faq/target/

Just change the logic that matches which URLs to handle.
I suppose a global change is not wanted (only for that module).
The solution above is only for external links. (these do not occure in magicsundays module)

Please Log in or Create an account to join the conversation.

  • fisharebest
  • Away
  • Administrator
  • Administrator
More
1 year 3 weeks ago #9 by fisharebest
> The solution above is only for external links

Hence my suggestion to change the logic for matching URLs.

Instead of matching external URLs, match ones containing the desired module URL

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

More
1 year 2 weeks ago - 1 year 2 weeks ago #10 by aim
hi.
I installed GVexport, it's not work well. But is not what i search. I just want to make it easier to go back and forth between the tree and the individual records.

I'm looking at fisharebest's proposal
Last edit: 1 year 2 weeks ago by aim.

Please Log in or Create an account to join the conversation.

More
1 year 2 weeks ago #11 by aim

You could use the solution from here: webtrees.net/faq/target/

Just change the logic that matches which URLs to handle.

I added the script in the body section of default.phtml, i can see it in the source page, it don't works :( , the link open in the same windows

Please Log in or Create an account to join the conversation.

More
1 year 2 weeks ago #12 by aim
in the module i think the script is here:
Code:
function(){t.personClick(e.data)}))}))}personClick(t){1!==t.generation?this.redirectToIndividual(t.url):this.update(t.updateUrl)}redirectToIndividual(t){window.location=t}update(t){window.location=t}}

Please Log in or Create an account to join the conversation.

  • Franz Frese
  • Away
  • Elite Member
  • Elite Member
More
1 year 2 weeks ago - 1 year 2 weeks ago #13 by Franz Frese

...I added the script in the body section of default.phtml...
Why didn't you try the "CSS and JS" of the control panel?

...I installed GVexport, it's not work well. ...
Can you give more details about "not working well"?

...I just want to make it easier to go back and forth between the tree and the individual records....
Use your browser functions (with right mouse button)
Last edit: 1 year 2 weeks ago by Franz Frese.

Please Log in or Create an account to join the conversation.

More
1 year 2 weeks ago - 1 year 2 weeks ago #14 by aim

Why didn't you try the "CSS and JS" of the control panel?

Can you give more details about "not working well"?

Use your browser functions (with right mouse button)

- I used it too, don't works
- there is a loop with a blank page.
- we can't use right click on the ajax magicsunday module.

i have posted a message on github.
Last edit: 1 year 2 weeks ago by aim.

Please Log in or Create an account to join the conversation.

  • Franz Frese
  • Away
  • Elite Member
  • Elite Member
More
1 year 2 weeks ago #15 by Franz Frese
> "- we can't use right click on the ajax magicsunday module."

Sorry for my imprecise expression: I mean the right mouse button together with the "go back" (or "go-forward") - arrow !

Please Log in or Create an account to join the conversation.

  • Franz Frese
  • Away
  • Elite Member
  • Elite Member
More
1 year 2 weeks ago #16 by Franz Frese
> "- there is a loop with a blank page."
did you post an issue for this at github page of gvexport?
What version are you using?

I use it already from the first version and did not see an error like this, so I recommend that module and I think it is very much prdestinated for your purpose!

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum
}