react-notion-x icon indicating copy to clipboard operation
react-notion-x copied to clipboard

Add option to hide metadata for collection row pages

Open khrome83 opened this issue 4 years ago • 4 comments
trafficstars

How do you remove the notion-collection-row?

I am able to just display: none, but ideally I want to remove it from rendering?

Is there a trick to identify and remove it?

khrome83 avatar Dec 24 '20 21:12 khrome83

Whether a row is displayed is based on the filtered status in the original Notion document.

Would you mind linking to a public example page where filtering isn't working as expected?

Thanks :)

transitive-bullshit avatar Jan 05 '21 05:01 transitive-bullshit

I am not referring to a table. I am referring to the props at the top of a page. The title, slug, data, all the meta data.

I want the pages content to render, but I don't want the notion meta data to render.

Does that make sense?

khrome83 avatar Jan 05 '21 11:01 khrome83

Ahhh yep. Currently, there's no way to disable that metadata aside from CSS, but I think makes sense to support disabling it across the board via a top-level option.

transitive-bullshit avatar Jan 06 '21 07:01 transitive-bullshit

Hey 👋 so react-notion-x will now automatically hide any collection row properties that are marked as hidden in Notion.

You can see a live example of this here with the corresponding Notion collection row page here.

Note that in the raw notion version, there are additional collection properties that are hidden from view and this is now reflected by react-notion-x by default.

transitive-bullshit avatar Jan 31 '21 00:01 transitive-bullshit