Skip Menu |

This queue is for tickets about the Tree-Family CPAN distribution.

Report information
The Basics
Id: 110822
Status: open
Priority: 0/
Queue: Tree-Family

People
Owner: Nobody in particular
Requestors: NHORNE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.02
Fixed in: (no value)



Subject: Hyperlinks
It would be great if the URLs could be added to the nodes to the tree. I believe GraphViz supports that.
On Thu Dec 31 15:07:19 2015, NHORNE wrote: Show quoted text
> It would be great if the URLs could be added to the nodes to the tree. > I believe GraphViz supports that.
There's some rudimentary support for this (see _person_node in lib/Tree/Family.pm) -- I'd be happy to incorporate any patches which improve this. thanks Brian
That nearly works (setting $Tree::Family::urlBase), but not quite. Instead of setting the hyperlink to "http://localhost/?id=XXX" where XXX is the ID in the Person's constructor, it actually sets XXX to the *name* of the person. On a personal note, I'd have preferred to have "XXX.html", but I guess every person will want there own. What would be best would be to pass a URL into the T:F:P constructor.
Subject: Re: [rt.cpan.org #110822] Hyperlinks
Date: Fri, 8 Jan 2016 20:36:10 -0500
To: Nigel Horne via RT <bug-Tree-Family [...] rt.cpan.org>
From: Brian Duggan <bduggan [...] matatu.org>
On Friday, January 8, Nigel Horne via RT wrote: Show quoted text
> On a personal note, I'd have preferred to have "XXX.html", but I guess every person will want there own. What would be best would be to pass a URL into the T:F:P constructor.
Thanks, yes, I agree, that would be nice; much of this code needs to be refactored to use attributes and better OO practices in general. Brian