stores Posted February 12, 2021 Report Share Posted February 12, 2021 Hello all, I would like to collapse the Notes field on a persons page. Some people in the tree have one or two lines but many have multiple pages as I transcribe everything into the Notes field in a time line. I have the "Collapsible Standard Events" Mod installed but Notes are not a part of that mod. Has anyone created a Mod to collapse Notes? Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted February 13, 2021 Report Share Posted February 13, 2021 This Mod doesn't collapse, but hide big notes. A big note is a note with more than x characters (you decide the x length) The hidden note is replaced by a "Show note" link which refresh the page and show the notes. to hide the notes again, use the back button of your browser. English, French and Dutch languages. This is a beta version. PHP solution, not js. Suggestions or remarks are welcome Michel hide_big_notes_v13.0.2.beta1.cfg Quote Link to comment Share on other sites More sharing options...
stores Posted February 13, 2021 Author Report Share Posted February 13, 2021 Thanks Michel, installing on a v13.01 install but getting "Cannot install" due to two "not unique" issues as attached... Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted February 13, 2021 Report Share Posted February 13, 2021 Will check... Michel Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted February 13, 2021 Report Share Posted February 13, 2021 OK. Can reproduce. New version beta2 attached. Michel hide_big_notes_v13.0.2.beta2.cfg Quote Link to comment Share on other sites More sharing options...
stores Posted February 13, 2021 Author Report Share Posted February 13, 2021 Thanks Michel, getting close, now just one error as attached... Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted February 13, 2021 Report Share Posted February 13, 2021 Yes.. Just a tab space too much in the location. Sorry. beta3 is attached. Michel hide_big_notes_v13.0.2.beta3.cfg Quote Link to comment Share on other sites More sharing options...
stores Posted February 14, 2021 Author Report Share Posted February 14, 2021 Hello Michel, Beta 3 installs but I don't see any difference. I tried setting it to 25 characters and 1 character and 0 characters but the Notes still show as seen in the attachment, am I missing something? Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted February 14, 2021 Report Share Posted February 14, 2021 The Mod is written for native TNG code. You certainly have Mods installed...(I think regroup person profile..?) Send me your getperson.php file and a list of installed Mods. See the result for notes > 1000 char in attach Michel Quote Link to comment Share on other sites More sharing options...
stores Posted February 14, 2021 Author Report Share Posted February 14, 2021 I only have one Notes section on a persons page, at the bottom, and i have 5 mods installed including your Hide Big Notes, Connections Counter, Image Captcha, Open Street Maps and Person Map as shown in an earlier image in this thread above... getperson.php attached... getperson.php Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted February 14, 2021 Report Share Posted February 14, 2021 I see. You use "In notes section" option for Show notes (Setup/general.../Misc..) I think we are ok now with this beta4 version. Michel hide_big_notes_v13.0.2.beta4.cfg Quote Link to comment Share on other sites More sharing options...
stores Posted February 14, 2021 Author Report Share Posted February 14, 2021 Hello Michel, Bingo, beta4 version works great... I thought "I see. You use "In notes section" option for Show notes (Setup/general.../Misc..)" might be the key. Thank you, works great, keep safe... Jim Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted February 14, 2021 Report Share Posted February 14, 2021 2 hours ago, stores said: beta4 version works great OK Jim, The next version will include the others notes, (attached to birth, death , user events, etc...) and new translations from Erik. Will look to give a more "collapse" design with an arrrow instead a link... Michel Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted February 14, 2021 Report Share Posted February 14, 2021 3 hours ago, stores said: Bingo, beta4 version works great Which design did you prefer? (1st or 2nd) Michel Quote Link to comment Share on other sites More sharing options...
stores Posted February 15, 2021 Author Report Share Posted February 15, 2021 Actually, they both look great, but i think the 1st would look best, since i have so many collapsed items, but with the "Show notes" caption but either works great for me. Thank you Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted February 18, 2021 Report Share Posted February 18, 2021 On 2/15/2021 at 5:40 AM, stores said: Actually, they both look great, but i think the 1st would look best, Hi Jim, Please try this beta6 version. Michel hide_big_notes_v13.0.2.beta6.cfg Quote Link to comment Share on other sites More sharing options...
stores Posted February 19, 2021 Author Report Share Posted February 19, 2021 Hello Michel, Beta 6 works perfectly, the arrow is a nice touch as you don't have to click the back button to re hide the notes, just click the arrow. Thank you very much, stay safe. Jim Quote Link to comment Share on other sites More sharing options...
Michael S Posted May 2, 2021 Report Share Posted May 2, 2021 Hello, I'm new here and my TNG runs great on 13.0.3 with template 16. I think the mod is great and have installed beta 6. It works fine so far. However, the page always jumps to the top when I click on the arrow. No matter whether down arrow or up arrow. How can I prevent this? Hope you can help me. Greetings Michael Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted May 2, 2021 Report Share Posted May 2, 2021 Michael, the actual beta6 version doesn't permits to change this behaviour. I know, it' annoying. The beta6 is a... beta version, so i'm waiting for observations (as yours) to finalize and promote the Mod When i have a little bit of time, i will check for use a more responsive system... Michel Quote Link to comment Share on other sites More sharing options...
Michael S Posted May 3, 2021 Report Share Posted May 3, 2021 Hi Michel, thank you very much for your effort. I'm happy to wait and I'm curious to see if you succeed. Many greetings Michael Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted May 8, 2021 Report Share Posted May 8, 2021 up.. Quote Link to comment Share on other sites More sharing options...
Michael S Posted May 11, 2021 Report Share Posted May 11, 2021 (edited) I would like to explain what the idea is, why I want the field to be collapsible. The individual page would become more condensed if I were to write, for example, a more detailed life story as a "note". For my relatives, this would have the advantage that they could create a printout that would be more book-like on the page Ancestors --> Ahnentafel, or Descendants -> Register. You can't do that so well if you do the History of Life as a "story". I think the History solution is very good for the web. In the long term perspective, it could be very good to be able to print out the Ahnentafel sheet "together" with the life histories (as notes) of the pesons. I hope I have expressed myself clearly. Many greetings Michael Edited May 12, 2021 by Michael S Changed Ahnenblatt to Ahnentafel (Ahnenblatt was the wrong word) Quote Link to comment Share on other sites More sharing options...
tngrlkrz Posted May 11, 2021 Report Share Posted May 11, 2021 Hi Michel, Great idea for a mod. I didn't thoroughly read the full thread, so excuse if this is repeat or already mentioned. I have two observations. 1) Expanding and Collapsing a note causes the entire page to be redrawn, rather than just expanding the note. Other expand/collapse functions on the person page do not do that. On my local system, with mods having ancestors, siblings/ sibling spouses, children, children's spouses etc being displayed, this can take a couple seconds for person with large families. 2) I would prefer when expanded, not being in a scroll box, but instead displaying the entire note. To me, requiring scroll after expand limits the collapse/expand function. Ron Quote Link to comment Share on other sites More sharing options...
Jan Bos Posted May 11, 2021 Report Share Posted May 11, 2021 I wanted to try the mod. But after installing my testsite disappeared and i cann't start it. What can I do? Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted May 11, 2021 Report Share Posted May 11, 2021 2 hours ago, tngrlkrz said: Expanding and Collapsing a note causes the entire page to be redrawn Yes Ron. Using js to show/hide notes is the best solution. But I have not yet found the method to do this... Michel 1 hour ago, Jan Bos said: my testsite disappeared Jan what do you mean with disappeared? No more TNG pages? The Mod (which version of the Mod do you use? Which TNG version?) modify the files getperson.php and personlib.php. Try to load a fresh version of getperson.php (and then personlib.php ) Michel 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.