Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Landing page layout #604

Open
matsumonkie opened this issue Jul 20, 2017 · 3 comments
Open

Landing page layout #604

matsumonkie opened this issue Jul 20, 2017 · 3 comments

Comments

@matsumonkie
Copy link
Contributor

First thing first, thank you for this great project. I have started to use Thredded today and the code is amazingly clean and understandable. It's a pure joy to work on OSS project like this !! 👍

For my project, I plan to have a different landing page. So instead of this:

old

where the content is organized through message boards, I'd rather have something like :

new

where the content is organized with topics (sorted by date I assume)

So I can probably rewrite the existing views easily to get to my goal but I thought I could maybe write a plugin for that.
From what I've read, it seems that the view hooks plugins can only help to add content, not to remove it. Any idea if there's a way ?

@jayroh
Copy link
Member

jayroh commented Jul 20, 2017

First thing first, thank you for this great project. I have started to use Thredded today and the code is amazingly clean and understandable. It's a pure joy to work on OSS project like this !! 👍

That just warms the proverbial cockles of my heart. Thank you for saying that ❤️

For what you're looking to do ... let me answer your question with a question:

Are you looking to just NOT have a top-level messageboard listing? Like ... for you there should be no concept of N messageboards. Just one is fine.

Is that right?

If so, you can mount thredded (example, at /forums), and add something in your route that redirects from /forums to the one single forum you would like to default to.

@matsumonkie
Copy link
Contributor Author

Well, not really. I need both the messageboard page and the topics page.
I thought of writting a plugin to let the ability to choose which page is the default one but maybe I'm the only one concerned by this feature.
What do you think? Could it be a needed plugin or should I just write it on my own ?

@glebm
Copy link
Collaborator

glebm commented Jul 20, 2017

From what I've read, it seems that the view hooks plugins can only help to add content, not to remove it.

While the view hooks can remove or entirely replace the content, perhaps this should really be a separate controller action.

I'd be fine with adding this to the core, perhaps as one of the options for the "home" page and so that the user can toggle between the two (like in Discourse one can switch between "Latest" and "Categories").

Then a Thredded setting can control the one selected by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants