On Theme install Set Page Defaults

Permalink
Hey, just wondering if there is a set way to do this already,

Lets say i have a theme that has the areas
Header Nav
Header
Main
Footer 1
Footer 2
Search

by default, there will not be a search block in the search area (i don't want to hard code it either) is there some way to add it to all page defaults and add to chilld pages automatically on theme install?

Mike

Mnkras
 
agedman replied on at Permalink Reply
agedman
If I understand you correctly, there is an easy way to do that. In the dashboard, select "Pages and Themes", click the "Page Types" tab. Select the page type you want to edit (its handle should match the name of the template you want to use -- unless you're using the default template -- if that's the case, pick a page type with a handle that doesn't match any of your named templates. It will use default.php as its template.

Next, click the "Defaults" button for your page type. You can go there and add whatever blocks you want (e.g. autonav, search, etc).

Hope that helps!

Here's a link you may find useful:http://www.concrete5.org/documentation/how-tos/another-primer-on-ar...

Cheers!
Mnkras replied on at Permalink Reply
Mnkras
i know how to do that, im saying on theme install, in the controller, for theme makers
agedman replied on at Permalink Reply
agedman
Ok, I get it. Sorry for missing the point, I guess I didn't read the title of your post. No idea. I'll shut up now. Good luck!
ScottC replied on at Permalink Best Answer Reply
ScottC
blog uses alias, i can't remember how i figured that out, but it aliases whatever blocks are on a collection type to the new collection_type/page_type(is there a difference?)