Different styling for different domains | Adobe Higher Education
Skip to main content
Level 5
February 10, 2017
Beantwortet

Different styling for different domains

  • February 10, 2017
  • 1 Antwort
  • 690 Ansichten

Hello, 

Is there a way to use different set of styling (css classes) info for different domains in the same AEM instance? For e.g. there maybe two root nodes for the 2 domains with the same page structure and the same set of components / templates being used in both places. Only thing that would need to differ is the styling or css classes. 

Is this possible short of using two different code bases and instances? If yes, any other way of doing it rather than having two root nodes with duplicate page structure?

Any info here will help a lot.

Thank you.

Dieses Thema wurde für Antworten geschlossen.
Beste Antwort von joerghoh

Hi,

The solution is quite simple: Use a different design.

The default page component has a property "designPath", where the location of the design can be set. If you develop 2 different designs (but using the same CSS classes etc) you can easily switch between Design A and B by setting the right path.

See the product documentation at [1].

Jörg

[1] https://docs.adobe.com/docs/en/aem/6-2/develop/the-basics/designer.html

1 Antwort

joerghoh
Adobe Employee
joerghohAdobe EmployeeAntwort
Adobe Employee
February 11, 2017

Hi,

The solution is quite simple: Use a different design.

The default page component has a property "designPath", where the location of the design can be set. If you develop 2 different designs (but using the same CSS classes etc) you can easily switch between Design A and B by setting the right path.

See the product documentation at [1].

Jörg

[1] https://docs.adobe.com/docs/en/aem/6-2/develop/the-basics/designer.html