That’s a neat little trick, but be aware of two things. Firstly it’ll hide any subitems from any dataview query, if I’m not mistaken. Secondly, this solution doesn’t avoid generating the subitems, it just hides them.
To tackle the first one, you might want to add a cssclasses properties to the css rule set, and to the notes where you want this behaviour. Then only notes with that class property would hide the subitems.
To address the other issue, you might need to go down the other alternatives, or just live with the fact that some extra data is generated and in most cases hidden.
Yes, for my use case is right because I have a personal workflow doesn’t collide with that choice, but is wise to add cssclasses, maybe it should prepend .mo-journal-content also
I know items are hidden but they are still present in the result, but the query result length is acceptable