Manfred62 Posted June 19, 2014 Share Posted June 19, 2014 hmm, new installation with PW dev 2.4.5 (after the latest fix from ryan), on Windows 7, XAMPP. Maybe a Windows specific problem? Link to comment Share on other sites More sharing options...
nikola Posted June 20, 2014 Author Share Posted June 20, 2014 @Manfred62 You have to uninstall Default Admin Theme from Core modules section before/after installing Modesta Admin Theme and it should work fine. I'll update the readme with instructions. New theme updates coming after this weekend 2 Link to comment Share on other sites More sharing options...
Manfred62 Posted June 20, 2014 Share Posted June 20, 2014 @Manfred62 You have to uninstall Default Admin Theme from Core modules section before/after installing Modesta Admin Theme and it should work fine. Hi Nikola, sorry no chance. In every case I only get the old-style theme from /wire/templates-admin/. Also tried this theme in an gradually updated (2.4 -2.4.5) dev installation. There I don't even get the checkbox in the user-profile to select the theme? Can anyone confirm that Modesta is running on local Windows environment? Link to comment Share on other sites More sharing options...
adrian Posted June 20, 2014 Share Posted June 20, 2014 You have to uninstall Default Admin Theme from Core modules section before/after installing Modesta Admin Theme and it should work fine. You shouldn't have to do this unless you are worried about the login screen which will always use the default theme (if available) since the theme is controlled on a per user basis. Link to comment Share on other sites More sharing options...
kongondo Posted June 20, 2014 Share Posted June 20, 2014 I was wondering the same but there seems to be a problem. Modesta is selectable on a per user basis but like manfred62 reports, you get the old PW theme instead (old as in pre-admin-theme-as-module old) Link to comment Share on other sites More sharing options...
adrian Posted June 20, 2014 Share Posted June 20, 2014 Here's my Profile page: Link to comment Share on other sites More sharing options...
kongondo Posted June 20, 2014 Share Posted June 20, 2014 @Adrian, I have the same profile page...but selecting modesta results in the user seeing the very old PW theme instead ... Link to comment Share on other sites More sharing options...
adrian Posted June 20, 2014 Share Posted June 20, 2014 Did you see my updated post with second screenshot showing the profile page in modesta? Maybe there is something weird on Windows? Link to comment Share on other sites More sharing options...
kongondo Posted June 20, 2014 Share Posted June 20, 2014 Now I have seen it. Yes, could be a windows issue...see screenshots below Before modesta After modesta @Manfred62 You have to uninstall Default Admin Theme from Core modules section before/after installing Modesta Admin Theme and it should work fine. I'll update the readme with instructions.... @nikola, See Adrian's post above. I also agree with that. Since these new admin themes are modules, they should be able to exists side by side. There shouldn't be any need to uninstall one in order to install/use another ...So, I wouldn't update those instructions just yet... ...Thanks for the theme! Link to comment Share on other sites More sharing options...
Craig Posted June 20, 2014 Share Posted June 20, 2014 Yes, there is a problem somewhere - on Windows, I too get the "old" admin theme when trying to use Modesta. Removing this line in /wire/core/AdminTheme.php allows it to load, however. if(!$this->wire('page') || $this->wire('page')->template != 'admin') return; 1 Link to comment Share on other sites More sharing options...
horst Posted June 20, 2014 Share Posted June 20, 2014 Check if this is in the modules info: public static function getModuleInfo() { return array( // ... 'autoload' => "template=admin", // ... ); } Link to comment Share on other sites More sharing options...
kongondo Posted June 20, 2014 Share Posted June 20, 2014 @Horst...yes, that line is there... Link to comment Share on other sites More sharing options...
Martijn Geerts Posted June 20, 2014 Share Posted June 20, 2014 I'm impressed by this theme nikola. I love the simplicity of the look. The module configuration makes so much sense. Sorry to be a nitpicker: 1. I would love to see that child elements in the tree are more indented. 2. The contrast of status hidden compared to default is to less. 3. The color of the fontawesome icons in the pagetree is to light. Take a look at the screen shot ( css glitch ) Overall very good work here nikola ! Link to comment Share on other sites More sharing options...
horst Posted June 20, 2014 Share Posted June 20, 2014 @Horst...yes, that line is there... Ok. I have downloaded and installed it too. I'm on windows and it doesn't load. It's like @Manfred said, in the Line 55 in core/AdminTheme.php :: init() $this->wire('page') does return NULL and not a pageobject for the AdminThemeModesta. For another AdminTheme-Module it returns a pageobject. Comparing both modules shows that both use the exact same code in methods init() install() getModuleInfo(). Weird! Link to comment Share on other sites More sharing options...
LostKobrakai Posted June 20, 2014 Share Posted June 20, 2014 I just had the same issue on mac with a fresh install. I uninstalled the default admin theme, which changed nothing, but then I hit "check for new modules" and the next page loaded the admin theme correctly. It's really wierd. 1 Link to comment Share on other sites More sharing options...
Manfred62 Posted June 20, 2014 Share Posted June 20, 2014 I just had the same issue on mac with a fresh install. I uninstalled the default admin theme, which changed nothing, but then I hit "check for new modules" and the next page loaded the admin theme correctly. It's really wierd. I can confirm this workaround!! Now I also have the Modesta theme activated. Also you can have both themes installed. You only have to make a new search for modules, to refresh the theme change. For example: root gets Modesta theme, guest gets Default theme is also possible. 1 Link to comment Share on other sites More sharing options...
Manfred62 Posted June 20, 2014 Share Posted June 20, 2014 @Nikola: how can I translate the headings in the side-panel? Found the phrases in the main.inc. But that's not possible to translate? Link to comment Share on other sites More sharing options...
renobird Posted June 20, 2014 Share Posted June 20, 2014 I can confirm there is something strange happening with 2.4.5 and admin theme switching. It may have existed before that as well. Happens on both Mac/PC and is not specifically related to Modesta. I submitted an issue on github 3 Link to comment Share on other sites More sharing options...
nikola Posted June 21, 2014 Author Share Posted June 21, 2014 The problem with theme switching indeed exists on latest dev versions, I'm also using PW for production in Windows environment and in 2.4.0 switching is working fine. I'll check every suggestion and posted question when I get home from holiday (tommorow) because I don't have my working computer with me... 2 Link to comment Share on other sites More sharing options...
SiNNuT Posted June 21, 2014 Share Posted June 21, 2014 I just noticed another strange thing that maybe is related to the admin theme problems described here. If i do a fresh install i get to the last installation screen. On that screen are two buttons; one says "Login to Admin", the other "View Site". If i click on the "Login to Admin" button i am then presented with the 'old' login screen. When i click "View Site" and then click the admin link in the top navigation (head.inc) i get the new login page. This is also the case when i close the browser on the last install screen and then later visit mysite/processwire Small detail: the update notices seem to be different on the old and new loginscreen. I have not been able to pinpoint the problem but i got a feeling that maybe this has something to do with the systemupdater (6?) and/or the newly added caches feature and corresponding db table. This seems to contain a module cache. Link to comment Share on other sites More sharing options...
LostKobrakai Posted June 21, 2014 Share Posted June 21, 2014 I just noticed another strange thing that maybe is related to the admin theme problems described here. If i do a fresh install i get to the last installation screen. On that screen are two buttons; one says "Login to Admin", the other "View Site". If i click on the "Login to Admin" button i am then presented with the 'old' login screen. I had the same behavior when I installed pw dev to test the dev version of the theme. Link to comment Share on other sites More sharing options...
marcus Posted June 23, 2014 Share Posted June 23, 2014 If anyone needs to easily change Modestas main color, I forked it and added a little setting: Download: https://github.com/marcus-herrmann/AdminThemeModesta 1 Link to comment Share on other sites More sharing options...
nikola Posted June 23, 2014 Author Share Posted June 23, 2014 New updates to the theme - I've added a counter next to username that counts unpublished pages and shows them in modal window. Check out the first post for changelog. 3 Link to comment Share on other sites More sharing options...
LostKobrakai Posted June 23, 2014 Share Posted June 23, 2014 I just updated to 1.0.1 and the new modal window shows all my repeater pages, as they are all unpublished. Link to comment Share on other sites More sharing options...
nikola Posted June 23, 2014 Author Share Posted June 23, 2014 Oops, I've overlooked the status of repeater fields, I'm going to fix it as soon as possible... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now