Jump to content


Photo

Custo theme (hardcoded path)

theme

  • Please log in to reply
2 replies to this topic

#1 Turhan

Turhan

    Advanced Member

  • Members
  • PipPipPip
  • 32 posts

Posted 16 August 2012 - 10:46 AM

Hi,

I am currently looking on how to apply a new theme to zurmo, change labels & so...
There is a folder named theme/default.
I have duplicated this folder to theme/myTheme in which I can change what I want.

There is also the configuration file where I have targeted this new folder as my new theme
$ vim app/protected/config/perInstance.php
$theme		    = 'myTheme';


However, when trying to edit protected/modules/zurmo/views/HeaderLinksView.php for instance, the theme ppath is hardcoded as /themes/default and does not take the baseUrl of the freshly configured theme.

Do you have some pointers on how to visually customize zurmo ?
Thank you

#2 jimf

jimf

    Advanced Member

  • Members
  • PipPipPip
  • 64 posts

Posted 21 August 2012 - 10:18 AM

I've been looking at the theme folder too, and it seems that most of the css files are empty and the bulk of the theming is done in newui.css. Do we have an example of how to Theme Zurmo? It would be great to have a couple of themes, even if we had the old theme that was in the zurmozoo app so we could switch themes and see how things work.

I'm thinking we should be able to do as stated above, copy the theme, and point to the them in the perInstance.php, but it would be even better if we had a UI in the Settings to switch themes between the theme folders on the machine.

Then when we really get fancy, we could let the theme selection be done on a per user basis :)

#3 Ivica

Ivica

    Advanced Member

  • Moderators
  • 478 posts

Posted 22 August 2012 - 12:26 PM

We discussed yesterday, theme path should be hardcoded, and you should be able to create/switch to new theme. If you found that some things related to theme are hardcoded, please report, and we will fix.





Also tagged with one or more of these keywords: theme

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users