Jump to content

AdminThemeModesta - New modest admin theme


nikola

Recommended Posts

@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 :)

  • Like 2
Link to comment
Share on other sites

@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

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

Now I have seen it. Yes, could be a windows issue...see screenshots below

Before modesta

post-894-0-36075700-1403268745_thumb.png

After modesta

post-894-0-56925500-1403268770_thumb.png


@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... :D...Thanks for the theme!

Link to comment
Share on other sites

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 ) 

post-577-0-68978400-1403270751_thumb.png

Overall very good work here nikola !

Link to comment
Share on other sites

@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

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.

  • Like 1
Link to comment
Share on other sites

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...

  • Like 2
Link to comment
Share on other sites

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.

install2.png

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

install1.png

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Similar Content

    • By stanoliver
      Hello Community!
      I found quite a  few ways or tools to style the admin or build a dashboard:
      - the new way with the .less compilation (reno style, rock style)
      - dashboard modules or tutorials how to build your own
      - admin on stereoids
      Vocabulary: With "admin like user" I do not mean a full admin but an user with quite a lot of priviledges ...
      My problem is that I do want to change the admin template for every (admin like) user in a different way. Or if I would build a bigger dashboard certain functionlity should only be available for a few (admin like) users but not for everyone.
      I would need different versions of the admin theme or the built dashboards for different admin users
      To start with a very simple example:
      Let's say I wanna give one (admin like) user a different background color (with css). 
      Let's say I wanna have an extra button or tab for some (admin like) user which another (admin like) user should not have
      How can I take advantage of processwire roles in all these examples I mentioned in the beginning?
       
       
    • By Robin S
      This module lets you add some custom menu items to the main admin menu, and you can set the dropdown links dynamically in a hook if needed.
      Sidenote: the module config uses some repeatable/sortable rows for the child link settings, similar to the ProFields Table interface. The data gets saved as JSON in a hidden textarea field. Might be interesting to other module developers?
      Custom Admin Menus
      Adds up to three custom menu items with optional dropdowns to the main admin menu.
      The menu items can link to admin pages, front-end pages, or pages on external websites.
      The links can be set to open in a new browser tab, and child links in the dropdown can be given an icon.
      Requires ProcessWire v3.0.178 or newer.
      Screenshots
      Example of menu items

      Module config for the menus

      Link list shown when parent menu item is not given a URL

      Advanced
      Setting child menu items dynamically
      If needed you can set the child menu items dynamically using a hook.
      Example:
      $wire->addHookAfter('CustomAdminMenus::getMenuChildren', function(HookEvent $event) { // The menu number is the first argument $menu_number = $event->arguments(0); if($menu_number === 1) { $colours = $event->wire()->pages->findRaw('template=colour', ['title', 'url', 'page_icon']); $children = []; foreach($colours as $colour) { // Each child item should be an array with the following keys $children[] = [ 'icon' => $colour['page_icon'], 'label' => $colour['title'], 'url' => $colour['url'], 'newtab' => false, ]; } $event->return = $children; } }); Create multiple levels of flyout menus
      It's also possible to create multiple levels of flyout submenus using a hook.

      For each level a submenu can be defined in a "children" item. Example:
      $wire->addHookAfter('CustomAdminMenus::getMenuChildren', function(HookEvent $event) { // The menu number is the first argument $menu_number = $event->arguments(0); if($menu_number === 1) { $children = [ [ 'icon' => 'adjust', 'label' => 'One', 'url' => '/one/', 'newtab' => false, ], [ 'icon' => 'anchor', 'label' => 'Two', 'url' => '/two/', 'newtab' => false, 'children' => [ [ 'icon' => 'child', 'label' => 'Red', 'url' => '/red/', 'newtab' => false, ], [ 'icon' => 'bullhorn', 'label' => 'Green', 'url' => '/green/', 'newtab' => false, 'children' => [ [ 'icon' => 'wifi', 'label' => 'Small', 'url' => '/small/', 'newtab' => true, ], [ 'icon' => 'codepen', 'label' => 'Medium', 'url' => '/medium/', 'newtab' => false, ], [ 'icon' => 'cogs', 'label' => 'Large', 'url' => '/large/', 'newtab' => false, ], ] ], [ 'icon' => 'futbol-o', 'label' => 'Blue', 'url' => '/blue/', 'newtab' => true, ], ] ], [ 'icon' => 'hand-o-left', 'label' => 'Three', 'url' => '/three/', 'newtab' => false, ], ]; $event->return = $children; } }); Showing/hiding menus according to user role
      You can determine which menu items can be seen by a role by checking the user's role in the hook.
      For example, if a user has or lacks a role you could include different child menu items in the hook return value. Or if you want to conditionally hide a custom menu altogether you can set the return value to false. Example:
      $wire->addHookAfter('CustomAdminMenus::getMenuChildren', function(HookEvent $event) { // The menu number is the first argument $menu_number = $event->arguments(0); $user = $event->wire()->user; // For custom menu number 1... if($menu_number === 1) { // ...if user does not have some particular role... if(!$user->hasRole('foo')) { // ...do not show the menu $event->return = false; } } });  
      https://github.com/Toutouwai/CustomAdminMenus
      https://processwire.com/modules/custom-admin-menus/
    • By sambadave
      Hi there
      Short version of question
      Let's say I have a page in the admin that contains a field... Is it possible to output the content from that field on another page in the admin? Almost like a reference.
      Longer version of question (with example)
      A house builder with multiple (60+) developments. They want to be able to create notices/messages that can be added to one or many developments. Handy for things like regional covid lockdowns or temporary office closures due to bad weather.
      My approach for the admin editing options:
      Add each message to each development
      Pros: You edit the message on the development page in context
      Cons: Very time consuming and repetitive if the same message needs to be applied to 60+ developments
        Control all the messages from one admin page and say which development each message should be applied to
      Pros: Easier to add/remove messages to more than one development at a time. Control all messages from one place.
      Cons: Content is not added on development page, which is where typical admin users may expect to find it I went for option 2 due to flexibility, and created a page within the admin for global development notices. This contains a repeater with:
      Field for message to display Checkbox list of all developments. The user can select which ones to apply each message to It's working really well but the only thing is that if the user goes to a specific development in the admin, the relevant messages aren't displayed in context (as they aren't edited on that page and instead on the global development notices page)... which may cause confusion when a new staff member / content admin tries to edit the text but there is no field when they go to the development admin page where they expect to see it...
      Solution???
      I don't require the message(s) to also be editable on the development page, but I wondered if there was a nice way to show it/them somehow. I feel like I am missing something really simple as I'm sure ProcessWire will have a nice way of achieving this, or maybe there are field settings that allow this kind of thing to happen?
      Any ideas on approaches or similar experiences would be much appreciated, even if it is just a much simpler example with the content from one field being shown on another admin page to get the ball rolling.
      Thanks in advance for any advice :)
    • By Kai
      REMOVED Free Processwire Template
    • By jploch
      Admin Theme Canvas
      A minimal admin theme with optimised page editor UI, based on Uikit 3.
      Currently this is close to stable, but users are advised to be cautious and test thoroughly.
      This theme is tested in all major Browsers including IE 11, Edge (>85), Chrome (>85), Firefox (>81), Safari (>11).

      If you find any bugs or have ideas for improvements, feel free to post your feedback.
      Download from Github
      Download from Modules Page
      Features
      Minimal black and white admin theme Fixed masthead navigation Direct access to page tree navigation inside page dropdown Less distraction for editors (when editing a page, the tabs are displayed as a dropdown menu inside the main navigation) Options to customise the ui Less distraction for editors

      Direct access to page tree navigation inside dropdown

      Page tree

      Options to customise the ui

      Login (inspired by AdminThemeBoss)

      Requirements
      Process Wire 3.0.100 or greater
      Installation
      Go to “Modules > Site > Add New“ Paste the Module Class Name “AdminThemeCanvas“ into the field “Add Module From Directory“ Click “Download And Install“ On the overview, click “Download And Install“ again… On the following screen, click “Install Now“ Go to your user profile page and change the theme to Admin Theme Canvas
×
×
  • Create New...