Modifying Dashboard Theme
Permalink 2 users found helpful
I am trying to modify the dashboard and concrete themes by using site_theme_paths.php according to this article (http://www.concrete5.org/index.php?cID=2928) in the help section. The only thing I cant figure out is how to keep my new dashboard theme from showing up in available themes to install under the Pages & Themes section. Any ideas?
Remo,
Yes I did check that. In fact I just copied the 'core' folder and made modifications to that. I couldnt see anywhere where it "hides" the theme within that folder.
Yes I did check that. In fact I just copied the 'core' folder and made modifications to that. I couldnt see anywhere where it "hides" the theme within that folder.
I just had a quick look at PageTheme and it lokos like they just select all the themes of the table PageThemes...
You might have to delete that table row?
You might have to delete that table row?
Anyone else have any idea on how to do this? Franz or Andrew?
the theme for the dashboard is solely the dashboard.php in core which is treated as and functionality wise is a single page.
this is what shows up on the themes page in the dashboard. (screenshot attached)
i'm not sure there's a way to hide themes from the dashboard in the way you're describing.
but how are the core themes already hidden from available themes to install? Where is that dictated?
from what I remember it only looks for files in "themes" and not "concrete/themes". Those in "concrete/themes" have been installed "manually"..
not sure tho.. you might want to check out concrete/models/pagetheme.php (something like that)
not sure tho.. you might want to check out concrete/models/pagetheme.php (something like that)
// Setup the default Theme
$pl = PageTheme::add('default');
$pl->applyToSite();
// add the greensalad theme
$salad = PageTheme::add('greensalad');
They are added, so they aren't shown as available to add because they reside in the "concrete" directory and are installed upon installing the cms (writing to db and the config/site.php write.
But yeah you would have to edit dashboard.php if assinging the theme to a single page for dashboard like this didn't work;
You would have to do this with each core update and it sounds like a lot of work if whatever you want to do can't be changed with the dashboard specific css.
But again I am merely a novice and I am sure I am entirely wrong.
$pl = PageTheme::add('default');
$pl->applyToSite();
// add the greensalad theme
$salad = PageTheme::add('greensalad');
They are added, so they aren't shown as available to add because they reside in the "concrete" directory and are installed upon installing the cms (writing to db and the config/site.php write.
But yeah you would have to edit dashboard.php if assinging the theme to a single page for dashboard like this didn't work;
$v->setThemeByPath('/knockers', 'dashboard'); //knockers would be the best theme, and knockers would be the single page in singlepages/knockers.php
You would have to do this with each core update and it sounds like a lot of work if whatever you want to do can't be changed with the dashboard specific css.
But again I am merely a novice and I am sure I am entirely wrong.
Thanks scott, remo & franz for all your help!
Bet it is neat.
here's a screenshot of what I've got so far. pretty much just some refinements and addition of different icons (fromhttp://www.pinvoke.com ). this is for a personal project that I am working on (sort of a big one that I'm really excited about) so I'm not planning on releasing this theme - but I might write up a tutorial when I'm done.
attachment doesnt seem to be showing. here it is again
Checked the source for the element and it really isn't showing. A simple jpeg would suffice, I just love tweaking this thing (that's what she said).
Did you have to overwrite the dashboard page or did you get the theme to the "dashboard" view routed correctly?
I used single page above mistakenly, knew what I meant but typed it differently.
Did you have to overwrite the dashboard page or did you get the theme to the "dashboard" view routed correctly?
I used single page above mistakenly, knew what I meant but typed it differently.
did upload a jpeg. Trying again.
I still havent gotten the theme to not show up under themes available to install - will figure that out later. Basically I just copied the 'core' themes folder, the 'css' folder, and 'images' folder in the 'concrete' directory and placed them in the root directories. Then I just modified those files. I am not a coder at all and was able to do it - so it isnt that hard.
I still havent gotten the theme to not show up under themes available to install - will figure that out later. Basically I just copied the 'core' themes folder, the 'css' folder, and 'images' folder in the 'concrete' directory and placed them in the root directories. Then I just modified those files. I am not a coder at all and was able to do it - so it isnt that hard.
what's the deal?!? Attachments still not showing.
Here's a link to the screenshot:
http://c5mix.com/wp-content/uploads/2009/03/dashboard-screenshot.jp...
Best part about this is that there's no hacks to the core!
Here's a link to the screenshot:
http://c5mix.com/wp-content/uploads/2009/03/dashboard-screenshot.jp...
Best part about this is that there's no hacks to the core!
I like it. Very cool idea man, I do like the icon idea, very well executed and very clean.
I didn't know if you were trying to skin the entire thing or something, *shivers* :)
I didn't know if you were trying to skin the entire thing or something, *shivers* :)
thanks scott!
I just stumbled across this -- that looks good! The dashboard benefits from a little color. Did you continue to maintain your own customizations?
Just an idea!