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

Custom Security.ss pages for Subsites #468

Open
Sitetools opened this issue Sep 15, 2021 · 1 comment
Open

Custom Security.ss pages for Subsites #468

Sitetools opened this issue Sep 15, 2021 · 1 comment

Comments

@Sitetools
Copy link

I can create a custom Security.ss page but the same custom login page works for all Subsites.
How can I specify what theme should work for what security page? The below makes all login pages use the mycustomtheme1 theme.

---
Before:
  - '#login-forms'
---
SilverStripe\LoginForms\EnablerExtension:
  login_themes:
    - '$public'
    - 'mycustomtheme1'
    - 'mycustomtheme2'
    - 'mycustomtheme3'
    - '$default'
---
---
Name: mytheme
---
SilverStripe\View\SSViewer:
  themes:
    - '$public'
    - 'mycustomtheme1'
    - 'mycustomtheme2'
    - 'mycustomtheme3'
    - '$default'

@Sitetools
Copy link
Author

Hi,
Do you have any suggestions as to how I get different templates working for different site logins?
I have another client asking the same question.

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

2 participants