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

Explain the module specific themes separation capability of Silverstripe #3945

Merged
merged 1 commit into from Mar 3, 2015

Conversation

jedateach
Copy link
Contributor

A problem I had recently highlighted the need for some missing docs on how the theme_module setup is possible.

#3944

@dhensby
Copy link
Contributor

dhensby commented Feb 26, 2015

:mind_blown: is this true?! Are there even any tests for this behaviour?

@jedateach
Copy link
Contributor Author

Ya - its been around since 2.3 / 2.4

I think this line is the best proof:
https://github.com/silverstripe/silverstripe-framework/blob/3.1/core/manifest/TemplateManifest.php#L189

Not sure if there are tests.

dhensby added a commit that referenced this pull request Mar 3, 2015
DOCS Explain the module specific themes separation capability of Silverstripe
@dhensby dhensby merged commit 25a060f into silverstripe:3 Mar 3, 2015
2. themes
3. modules
4. framework.
2. module-specific themes (e.g. themes/simple_blog)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this definitely the right priority? I answered this a while back: http://stackoverflow.com/questions/24969798/blog-template-isnt-overridden - I'm not sure if I'm right but I'm guessing I would have tested at the time. I'm fairly certain that themes are higher priority then mysite.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My understanding is that mysite trumps all

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Appears so :)

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

Successfully merging this pull request may close these issues.

None yet

3 participants