Skip to content

Branding Support? #182

@bastianschwarz

Description

@bastianschwarz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions