mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	
		
			
				
	
	
	
		
			791 B
		
	
	
	
	
	
		
			Vendored
		
	
	
	
			
		
		
	
	
			791 B
		
	
	
	
	
	
		
			Vendored
		
	
	
	
Hidden notes
Disallow adding child notes
- To enforce at server level go to services/notes.tsand look for thegetAndValidateParentmethod. Look for theparams.ignoreForbiddenParentsif statement and add it there.
- To hide the plus button in the note tree, go to widgets/note_treein the client and look forenhanceTitle. Look for the if statement which starts with!["search", "launcher"].includes(note.type).
- To disable it from the contextual menu, go to tree_context_menuand look for thegetMenuItemsmethod. There look for theinsertNoteAfterandinsertChildNoteactions and look at theirenabledconditions. If adding a big note type with lots of child notes, see the pattern of optinos & help (rename and augment thenotOptionsOrHelpvariable.