Jump to content

Reno Theme


Peter Knight

Recommended Posts

Thanks all.

I've got one issue to work out with mobile safari, after that it should be ready.

@Pete, I have local copies of your colors that are compatible. I'll send everything to you later today - you can make any additional changes - shouldn't take long at all.

  • Like 1
Link to comment
Share on other sites

Noticed another issue. I've a module with a static navigation via the module .info.json file. Not it's always showing me the first nav item as current, no matter where I click. 

    "nav": [
        {
            "label": "Dashboard",
            "url": "",
            "icon": "tachometer"
        },
        {
            "label": "Projekte",
            "url": "project/",
            "icon": "list"
        },
        {
            "label": "Kritisch",
            "url": "critical/",
            "icon": "exclamation-triangle"
        },
        {
            "label": "Import",
            "url": "import/",
            "icon": "exchange"
        }
    ]
Link to comment
Share on other sites

I don't know if this has changed in the new version, but I noticed, that the line-height is set as absolute value (1.6em) on the body, which should really be relative.

I'll need to experiment with this to see what it breaks. Vertical rhythm needs an absolute unit, but that may not be needed in the case of an admin, so I'll take a look at moving to unitless.

I'll look into the static nav issue now.

tpr,

What browser? I'm not seeing that here.

post-474-0-79330300-1435760907_thumb.png

Link to comment
Share on other sites

@LostKobrakai,

I assume you are using executeDashboard(), excecuteProject(), etc… with this module

The current way to check for current status won't work because the path will always be the same /processwire/name-of-page-using-this-process/

So that is why your dashboard item registers as current.

I think the only way to resolve this is to enable URL segments for the admin template. You still need to have the executeWhatever() method, but the segments can then be tacked on to the end of the page->url and checked against. *Unless anyone chimes in with a way to get the full page path including the method.

So, the solution I have is to turn on URL segments for the admin template, and then update AdminThemeRenoHelpers.php

Around line 225:

if(is_array($c)) {
    // $c is moduleInfo nav array
    $moduleInfo = array();
    if(isset($c['permission']) && !$this->wire('user')->hasPermission($c['permission'])) continue;
    $segments = $this->input->urlSegments ? implode("/", $this->input->urlSegments) . '/' : '';
    $class = $currentPagePath . $segments == $p->path . $c['url'] ? 'current' : '';
    $title = $sanitizer->entities1(__($c['label'], $textdomain));
    $url = $p->url . $c['url'];
    if(isset($c['navJSON'])) {
        $navJSON = $c['navJSON']; // url part
        $moduleInfo['useNavJSON'] = true;
    }
    $c = $p; // substitute 
}

I've tested this here, and it seems to be working as expected. I'll test it a bit more this afternoon to see if there are any unintended consequences.

Link to comment
Share on other sites

Thanks Wanze! :)

@LostKobrakai,

That's right. All the other executeWhatever() methods have the same path as the execute() method, which is why it's always showing as current.

The fix I posted above seems to work fine here.

Link to comment
Share on other sites

Ryan mentioned having a few things to add that were related to modifications he hasn't committed to dev yet. Sounds like they aren't style related, but I may take one last look after he adds the things he's been working on. I'll be out of the office tomorrow, so I'm guessing it would be early next week before it's available.

Link to comment
Share on other sites

It would be nice if the "user-picture" functionality would support alternate user templates.

Is there some built-in way to define an alternate user template, or do you just mean allowing you to choose which template to pull the image from?

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.
×
×
  • Create New...