julian on Nostr: NodeBB's topic list layout is great for written and media-light content, although it ...
NodeBB's topic list layout is great for written and media-light content, although it is less ideal for categories which predominately feature pictures. I recently ran into this issue with the Pics and Trips category on the OpenBeta Community. While we've made some much-needed TLC and improvements so that topic thumbnails are better handled and displayed, I did not feel they were adequately prioritised for this particular category.
So I wrote the Category Masonry plugin for NodeBB!
In brief:
Configurable; either by category or by percentage of topics with a topic thumbnail/image
Overrides the partials/topic_list.tpl template to display cards
Works with custom themes (will correctly override the theme's category.tpl, or the base theme's category.tpl if your theme does not have its own)
Published at
2024-12-19 16:22:24Event JSON
{
"id": "c698130442312dbf1cee2c1c29b95e1dc15081e1d9a27c03f3c2e6a559750d70",
"pubkey": "d7f8927bb1187e8fbcd0cf4a8ea94d2e8e498ecfca3b2c4f38392a6acc5969d7",
"created_at": 1734625344,
"kind": 1,
"tags": [
[
"p",
"484878cb822753711aace00cf508ab4f1d3b327a2c2c1b65010e949afca0a5ea",
"wss://relay.mostr.pub"
],
[
"p",
"4fe89f6d77631af061580953e5515c9bd6c487370005379442b4792a0d8b812c",
"wss://relay.mostr.pub"
],
[
"t",
"nodebb"
],
[
"t",
"plugin"
],
[
"t",
"masonry"
],
[
"imeta",
"url https://community.nodebb.org/assets/uploads/files/1734625210426-screenshot-2024-12-19-at-11-01-07-pics-and-trips-openbeta-forums.png",
"m image/png",
"dim 1469x1207"
],
[
"proxy",
"https://community.nodebb.org/post/102267",
"activitypub"
]
],
"content": "NodeBB's topic list layout is great for written and media-light content, although it is less ideal for categories which predominately feature pictures. I recently ran into this issue with the Pics and Trips category on the OpenBeta Community. While we've made some much-needed TLC and improvements so that topic thumbnails are better handled and displayed, I did not feel they were adequately prioritised for this particular category.\nSo I wrote the Category Masonry plugin for NodeBB!\n\nIn brief:\n\nConfigurable; either by category or by percentage of topics with a topic thumbnail/image\nOverrides the partials/topic_list.tpl template to display cards\nWorks with custom themes (will correctly override the theme's category.tpl, or the base theme's category.tpl if your theme does not have its own)\n\n\n\nhttps://community.nodebb.org/assets/uploads/files/1734625210426-screenshot-2024-12-19-at-11-01-07-pics-and-trips-openbeta-forums.png",
"sig": "973a77eb2406f37b4c746db1c4b04824a514603dbaa053b1cd43ad5b6a9d367a3fe872a287d43c096946dfb3c9531259c0b27b79b3b144efa36cf8b2450b96ba"
}