Jump to content

Default theme improvement


Nico Knoll
 Share

Recommended Posts

Hi,

I really like the default theme. But I have one idea how to make it even better:

Insert the following code into line 66 of the "default.php" in "wire->templates-admin" (after "<p id="logo">ProcessWire</p>"):

<a id="viewpage" href="<?php echo $config->urls->root; ?>">view site</a>

And the following code at the end of "main.css" in "wire->templates-admin->styles":

#viewpage {
float: left;
margin-top: 48px;
margin-left: 195px;
color: #A7E5F9;
}

#viewpage:hover {
color:#fff;
background:none;
}

Just try it out. I guess ex-WordPress users will love it.

Link to comment
Share on other sites

I'm a little confused. Further down you have the root tree "Home" and it has a "view" button which does the same.

Though I see there could be a more prominent button somewhere visible, but this comes down to personal preference.

Creating you own custom theme is so easy anyway in PW. There's a lot of thing that can be helpful.

Anyway I yet have to find a CMS that makes it so easy and straight forward changing the whole admin theme and even layout and add widgets. This also is enabled only by the way it's build. Simple straight HTML/PHP CSS.  Gotta love it everytime I think about it! This is something PW shines over all CMS' I know of.

Link to comment
Share on other sites

Wouldn't it make sense to just have it as the first item in the breadcrumb trail? I also like the idea of having it in the top right corner (or top left). If we go that route, I'd want to add it in a way that doesn't mess up the other themes.

I think the site link makes sense where it is in WP because it's in the context of the site's name up in the masthead (if I'm remembering correctly). But PW doesn't have the site's name in the masthead and instead just has the logo. So the placement next to the logo doesn't seem quite as contextual in PW as it does in WP, even if it looks good.

Link to comment
Share on other sites

Ui, not easy to solve...

Maybe a green button only on the Pages page, like this one in Modules... but I'm not sure...

edit: the one that is now, is a more elegant solution for sure

post-349-132614281498_thumb.png

Link to comment
Share on other sites

The little overlap there is intentional, and I put it on low opacity so we could get some interesting blending/overlapping when the browser window size located it there. If you roll over it it'll go full opacity again. I thought you guys would like it  :-\ I suppose I could take it higher opacity so that the overlapping is barely noticeable, or full opacity for no visible overlap. But since it's the only button over there I thought it was an opportunity to do something a little more interesting.

Link to comment
Share on other sites

I don't see that as a problem. It aligns nicely with top row and doesn't overlap with the link text. Also - works similar way with normal and short "site" title, but scales to longer titles too.

I would probably add that link to a wrapper div or ul though, that way modules could easily extend on that and add more links (not sure if it is a good idea, but maybe links for campaign sites etc..?).

Link to comment
Share on other sites

To be honest, I don't like it too much. To my taste it looks a little clumsy and brings some dissonance into otherwise perfect harmony of defaul theme.

Edit: above I mean not the link itself, only its overlapping with navigation.

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...