Skip to content

Add support for changing layout - #15

Open
skipperguy12 wants to merge 1 commit into
masterfrom
theme
Open

skipperguy12 wants to merge 1 commit into
masterfrom
theme

Conversation

@skipperguy12

Copy link
Copy Markdown
Contributor

No description provided.

@skipperguy12

Copy link
Copy Markdown
Contributor Author

Is this everything for theming? It functions but I'm not so sure this is absolutely everything from forem. I was able to successfully create a theme for BS3, and this was the process to apply the theme:
Add following to application.css

/*
*= require mongoid_forums-bootstrap
*/

Add following to application.js

//= require mongoid_forums-bootstrap

Change the following for the mongoid_forums.rb initializer:

MongoidForums.layout = "mongoid_forums-bootstrap/bootstrap"
MongoidForums.admin_layout = "mongoid_forums-bootstrap/bootstrap-admin"

Is this the same as radar/forem?

@AustinLMayes

Copy link
Copy Markdown

Wait, can't a user just generate views and theme them?

@skipperguy12

Copy link
Copy Markdown
Contributor Author

@AustinLMayes yeah, radar/forem seems to have some built in method that makes it 'easy' to theme which I'm trying to add (however I don't fully understand it). As far as I can see, it kind of just depends on you setting the layout for each controller through the config. Then, because it's a Rails engine, it looks like the stylesheets and javascript all become available for use, and by requiring it in your app you get a theme.

I'm hoping someone more familiar can explain the process, and confirm if this works the same way. For now I'll leave it unmerged.

@AustinLMayes

Copy link
Copy Markdown

@skipperguy12 that way makes the user edit CSS and not actual html content which is kinda pointless IMO, just let the users generate views and customize them on their own.

@skipperguy12

Copy link
Copy Markdown
Contributor Author

@AustinLMayes that's already allowed, I guess I'll leave this open because as you're saying it's almost pointless. This will be left open, if anyone wishes to come and explain it's purpose, if this is correct, and why it should be merged I will go ahead and do so.

@AustinLMayes

Copy link
Copy Markdown

@skipperguy12 ok

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants