cancel
Showing results for 
Search instead for 
Did you mean: 

different theme content for the same web application

blackhole
Champ in-the-making
Champ in-the-making
Hi All,

I'm currently dicovering Alfresco WCM/CMS capabilities to be used across our application as web content management system. I have the following senario which I'm trying to solve with Alfresco:

- we have one web application which will be used for several clients we have.
- each client has their own content and style sheets/themes.
- each client recognized by a client_ID.


i want to publish the content based on the client_ID so each client will use the same web application with their own specific content.

how is that possible with alfresco?
please advise.
by the way we use velocity as our template engine.

Thanks,
2 REPLIES 2

davidturner90
Champ in-the-making
Champ in-the-making
Hi,

I have a very similar requirement for using a different "theme" for each client.

Looking at the code it would appear the org.alfresco.web.ui.repo.tag.PageTag writes out the css/main.css as the stylesheet. This does not appear to be configurable - in other words it is not read in from a properties file or xml file but instead is embedded within the class.

To get a different theme for each client would involve overriding the doStartTag() method and delegating the stylesheet decision to a handler class that perhaps reads in the clientId parameter value and maps this to an appropriate css file. Not ideal as it involves overriding Alfresco code and is more code to maintain

However, if there is an easier more configurable solution then I would appreciate some guidance - ideally don't want to touch any Alfresco components but rather plug extensions into them to achieve the desired behaviour

blackhole
Champ in-the-making
Champ in-the-making
Thanks David for the response.
i'm not familiar with alfresco API that much but as you mentioned as well there should be some kind of configuration and / or services already opened up and in place in order to do such modifications and / or publishing the content to front-end.I'm sure alot of people who are working on enterprise web applications in which they are dealing with one single-source webapp and customize it based on their clients will come across such senario.

I still think there should be a way to do it without modification in code. anyone any ideas?

Thanks,