Jump to content
TNG Community
Tobbe

Remove/hide tree name as show in attached image

Recommended Posts

Tobbe

Hi,

Can I remove/hide the treename "Törnqvist & Vedin" as in image attached? I don't want it there.

remove this.png

Share this post


Link to post
Share on other sites
Chris Lloyd

If you leave the tree field in Admin>setup>site design blank it should not display.

Share this post


Link to post
Share on other sites
Rob Severijns

Tobbe,

Did that work for you?

It didn't in my installation for existing persons. Mayby it does for newly created but I didn't test that.

Rob

Share this post


Link to post
Share on other sites
theKiwi
3 hours ago, Rob Severijns said:

Tobbe,

Did that work for you?

It didn't in my installation for existing persons. Mayby it does for newly created but I didn't test that.

Rob

I don't see how it would work - everybody has to have a tree assignment - that setting for Default Tree affects what tree is "preferred" in the case of any search that can be restricted by tree.

It will need a Mod to getperson.php (or genlib.php) to remove that line from display.

Roger

Share this post


Link to post
Share on other sites
Tobbe
5 hours ago, Rob Severijns said:

Tobbe,

Did that work for you?

It didn't in my installation for existing persons. Mayby it does for newly created but I didn't test that.

Rob

No, it didnt work. Never mind. Just a cosmetic issue. I can live with it 😊

Share this post


Link to post
Share on other sites
Rob Severijns

Tobbe,

I'm not able to write mods but if you edit your getperson.php and change:

$treestr = "<a href=\"$showtree_url" . "tree=$tree\">{$treerow['treename']}</a>";

into

//$treestr = "<a href=\"$showtree_url" . "tree=$tree\">{$treerow['treename']}</a>";

The treename isn't displayed anymore.

Downside is that you need to do this again after an update of TNG

Rob

Share this post


Link to post
Share on other sites
Tobbe
55 minutes ago, Rob Severijns said:

Tobbe,

I'm not able to write mods but if you edit your getperson.php and change:


$treestr = "<a href=\"$showtree_url" . "tree=$tree\">{$treerow['treename']}</a>";

into


//$treestr = "<a href=\"$showtree_url" . "tree=$tree\">{$treerow['treename']}</a>";

The treename isn't displayed anymore.

Downside is that you need to do this again after an update of TNG

Rob

Aha, thank you so much.

Share this post


Link to post
Share on other sites
bhemph

Tobbe,
      Instead of commenting it out completely "//" you will want to set it to an empty string "" so that you do not end up with warnings in PHP 8.

Brent

Share this post


Link to post
Share on other sites
Brett
On 1/14/2022 at 3:37 AM, Tobbe said:

Can I remove/hide the treename

Tobbe

I have a Private Mod for this that some users have installed.

Give me a few days and I will upload to the Wiki.

Share this post


Link to post
Share on other sites
Rob Severijns

 

30 minutes ago, bhemph said:

Instead of commenting it out completely "//" you will want to set it to an empty string "" so that you do not end up with warnings in PHP 8.

That's beyond my knowledge so thx for the additional advise.

Rob

Share this post


Link to post
Share on other sites
Tobbe
5 hours ago, bhemph said:

Tobbe,
      Instead of commenting it out completely "//" you will want to set it to an empty string "" so that you do not end up with warnings in PHP 8.

Brent

Ok, I'll change it. Thanks for the tip.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×