azizdogan Posted February 25, 2025 Report Share Posted February 25, 2025 Dear TNG Community, We started to publish our family tree about 1 week ago. The names are there, but for many people the date and place of birth are missing. There is a “Suggest” button to submit suggestions. But I would like to have a button at the top of the template header that is clearly visible. How can I realize this as code? How can I globally access $entity_type or similar variables. In the genlib.php the link to suggest.php with parameters is preserved. But when I do an echo - the return of the variable is empty. I only want to access them in the header of the template and create a link for specific suggestions (person/family). Sounds quite simple, but I haven't got the hang of it yet. Quote Link to comment Share on other sites More sharing options...
Katryne Posted February 25, 2025 Report Share Posted February 25, 2025 Hello, You can have a look at the Comment mod, which can be installed on TNG 15 also, though it's marked for TNG 14 : https://tng.lythgoes.net/wiki/index.php?title=Comments And Family Group Work sheet : https://tng.lythgoes.net/wiki/index.php/Family_Group_Worksheet Quote Link to comment Share on other sites More sharing options...
EricD Posted February 26, 2025 Report Share Posted February 26, 2025 I think something like this should work: <a href="<?php echo getURL( "suggest", 1 ) . "page=" . urlencode(str_replace("?", "", $title)); ?>">Contact me</a> You can add a class and style it to make it as prominent as you want. Eric Quote Link to comment Share on other sites More sharing options...
Rob Severijns Posted February 26, 2025 Report Share Posted February 26, 2025 Another option that I use for all my registered users is to give them the role of Submitter. (Do take a look at the exact user-rights of the Submitter Account) When user is logged in, this places an edit icon next to the the subjects on the person page. When clicked a message is generated specific to the subject they have relevant information about. When sent the Admin will recieve a message about the proposed change and can then apply the change, or not. All standard TNG and it works very well. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.