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

Branding Support? #182

Open
bastianschwarz opened this issue Aug 11, 2022 · 0 comments
Open

Branding Support? #182

bastianschwarz opened this issue Aug 11, 2022 · 0 comments

Comments

@bastianschwarz
Copy link

More of a question and maybe a feature request:

We have a setup where we need to support multiple "brandings" within one site. We achieve this by having a Body component:

prototype(customer.site:Presentation.Organisms.Body) < prototype(Neos.Fusion:Component) {
  branding = ${currentSiteName}
  header = ''
  main = ''
  footer = ''

  renderer = afx`
    <div class={'branding-' + props.branding}>
      {props.header}
      <main class="main">
        {props.main}
      </main>
      {props.footer}
    </div>
  `
}

The currentSiteName is set as @context within our page and is the (suprise) name of the current site. This works great in integration but I currently hit a wall on how to change this in monocle as I have no site available, even though we can open the styleguide using different domains.

Have you done something like this before? Any ideas on how to solve this?

Would a "branding" dropdown next to the site selector dropdown be something you'd want to add to Monocle (if so, I might be able to provide a PR in the future).

Thanks in advance

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

No branches or pull requests

1 participant