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 replied on at Permalink Reply
Remo
I think there's a theme in a directory called "core". Did you check that directory? There's maybe something inside to make sure its not visible in the themes section. Or maybe there's something missing...

Just an idea!
c5mix replied on at Permalink Reply
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.
Remo replied on at Permalink Reply
Remo
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?
c5mix replied on at Permalink Reply
Anyone else have any idea on how to do this? Franz or Andrew?
ScottC replied on at Permalink Reply
ScottC
the theme for the dashboard is solely the dashboard.php in core which is treated as and functionality wise is a single page.
c5mix replied on at Permalink Reply 1 Attachment
this is what shows up on the themes page in the dashboard. (screenshot attached)
frz replied on at Permalink Reply
frz
i'm not sure there's a way to hide themes from the dashboard in the way you're describing.
c5mix replied on at Permalink Reply
but how are the core themes already hidden from available themes to install? Where is that dictated?
Remo replied on at Permalink Reply
Remo
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)
ScottC replied on at Permalink Reply
ScottC
// 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;

$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.
c5mix replied on at Permalink Reply
Thanks scott, remo & franz for all your help!
ScottC replied on at Permalink Reply
ScottC
Bet it is neat.
c5mix replied on at Permalink Reply 1 Attachment
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.
c5mix replied on at Permalink Reply 1 Attachment
attachment doesnt seem to be showing. here it is again
ScottC replied on at Permalink Reply
ScottC
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.
c5mix replied on at Permalink Reply 1 Attachment
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.
c5mix replied on at Permalink Reply
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!
ScottC replied on at Permalink Reply
ScottC
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* :)
c5mix replied on at Permalink Reply
thanks scott!
Quaro replied on at Permalink Reply
I just stumbled across this -- that looks good! The dashboard benefits from a little color. Did you continue to maintain your own customizations?