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
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
i know how to do that, im saying on theme install, in the controller, for theme makers
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!
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?)
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!