Tobbe 0 Report post Posted January 13 Hi, Can I remove/hide the treename "Törnqvist & Vedin" as in image attached? I don't want it there. Share this post Link to post Share on other sites
Chris Lloyd 0 Report post Posted January 13 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 0 Report post Posted January 14 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 0 Report post Posted January 14 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 0 Report post Posted January 14 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 0 Report post Posted January 14 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 0 Report post Posted January 14 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 0 Report post Posted January 15 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 0 Report post Posted January 15 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 0 Report post Posted January 15 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 0 Report post Posted January 15 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