cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Custom Theme, can only customize the css?

azrul
Champ in-the-making
Champ in-the-making
Hi all,

I appreciate if the expert here can guide or show me to a correct path, as im still new in this platform.

The issue:
I'm creating a theme (alfresco theme, based on Alfresco Community 4.2)
and modify all suitable css, to fit my custom theme.
But i did modify the structure a bit (.ftl such as header.get.html.ftl inside the share components folders)
then, how do i go from this?
I want to deploy this new custom theme with its modified .ftl, yet i dont want my modified .ftl to overwrite the other theme that use the original (unchange) .ftl.

Desired example:
in custom theme, i put a text in footer .ftl says 'this is custom theme by Azrul'.
and when deploy or install this custom theme, only this theme will read from my modified footer.ftl, and showed that text. others theme didnt show the footer text.

Thanks, if need more info, please do inform me.

Still learning,
Azrul
3 REPLIES 3

mitpatoliya
Star Collaborator
Star Collaborator
All look and feel related things are declared in themes in alfresco and those themes are build using css files which are being referred in ftl.
So basically there are different themes available in alfresco with all of them having similar structure when choose one theme ftl will automatically pickup css files from that theme by this way dynamically theme change works.
So, you need not to change any ftl files if you want to create your own theme.Just create new theme through set of css which follow structure of existing themes.

azrul
Champ in-the-making
Champ in-the-making
Hi mitpatoliya,

Thanks for replying, thank you, understood that the look and feel can be change with only CSS Smiley Happy
But until one point, there is a limit in what css only can do, unless i change a bit the html/.ftl.
Im doing a custom theme, which the looks and feel will be difference from the default theme, and by this, i have to change a bit the .ftl.

Thus, is there a way for me to deply this theme with its .ftl without disturbing the default .ftl?

Thank you for your time Smiley Happy

ps/ Attached is my custom theme, i change the ftl for the search box, then add a clear div etc and also modify the footer.flt

lexcorp
Champ in-the-making
Champ in-the-making
Hi Azrul,

The theme you have created me feel very good, I recently starting a project in which I need to modify the appearance of Alfresco Share making the necessary adjustments to the CSS files, is it possible to give us more details of your experience to create this? or is it possible to share this?