Jump to content
TNG Community
stores

Collapse Notes Field

Recommended Posts

stores

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? 

Share this post


Link to post
Share on other sites
Michel KIRSCH

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

Share this post


Link to post
Share on other sites
stores

Thanks Michel, installing on a v13.01 install but getting "Cannot install" due to two "not unique" issues as attached...

Clipboard01.jpg

Share this post


Link to post
Share on other sites
Michel KIRSCH

Will check...

Michel

Share this post


Link to post
Share on other sites
stores

Thanks Michel, getting close, now just one error as attached...

Error.jpg

Share this post


Link to post
Share on other sites
Michel KIRSCH

Yes.. Just a tab space too much in the location. Sorry.

beta3 is attached.

Michel

hide_big_notes_v13.0.2.beta3.cfg

Share this post


Link to post
Share on other sites
stores

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?

Venard.jpg

Share this post


Link to post
Share on other sites
Michel KIRSCH

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

hide big notes.JPG

Share this post


Link to post
Share on other sites
stores

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

Share this post


Link to post
Share on other sites
Michel KIRSCH

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

Share this post


Link to post
Share on other sites
stores

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

Share this post


Link to post
Share on other sites
Michel KIRSCH
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

 

Share this post


Link to post
Share on other sites
Michel KIRSCH

 

3 hours ago, stores said:

Bingo, beta4 version works great

Which design did you prefer? (1st or 2nd)

Michel

hide big notes 2.JPG

Share this post


Link to post
Share on other sites
stores

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

Share this post


Link to post
Share on other sites
Michel KIRSCH
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

Share this post


Link to post
Share on other sites
stores

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

Share this post


Link to post
Share on other sites
Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×