You most likely have something in the first category that forces the topic table to be pushed beyond its set width. This could be, for example, a long text string in the title or the excerpt, like a URL. It can be fixed by setting white-space:wrap on the excerpt.
Hi,
I am new to discourse and was trying to get the sidebar blocks to appear on the topics page. I am trying to use the sidebar block as a quick navigation tool. Any ideas about how I can achieve this?
Thank you.
i installed the plugin and the latest replies are showing now on the sidebar how i can add list of categories? also can i add advertisement ? if not what i can add to the sidebar in total ?
Iâm not sure I understand how tou wanna display them horizontally, but you can do that with css. Either items inside the block, or the qhole sidebar.
Well, you need to see those lines in context. The full function is this:
export function getLatestPosts(context) {
const container = Discourse.__container__;
const store = container.lookup('store:main');
var filter = "c/" + context.attrs.category;
return store.findFiltered("topicList", {filter: filter}).then((result) => {
return result.topic_list.topics;
}).catch(() => {
console.log('getting topic list failed')
return [];
})
}
So the first two lines in the function set up the store, the third line sets up the filter, and then we run findFiltered on the store to, well, find the posts based on that filter.