I would like to check in global scrapbook for a particular name, and then do something if it does.
PermalinkAn example use case would be to create many color versions of a theme, and name individual CSS files to match that color scheme for that theme. Then you would create an if/else statement to check for a particular color name in the global scrapbook (I wouldn't care what kind of block it was, I just need the name of it), and output the css based on that name.
Is this possible? I know you can change a line in the HTML to do this, but I want a seamless and code-less way for the user to change between many color variations in a theme. I am also aware of the user theme switcher block in the marketplace but that is more for theme demoing rather than a end user solution.
Any ideas?
BUT, your links gave me some fantastic ideas for other features on a page by page basis.
Thanks!
Good luck with the site, sounds like a very interesting project!
-Jordan
Me and my brother are going to start by defining a "framework" for the rules and the custom functionality that will be standard across all our themes, and then the prices will be low, so hopefully it will equate into a winning combination, lol.
Also, I had a concern about the block auto including view.css files in the header. I know IE has a limit of around 34 css includes, so what happens when your site uses more than 34 different blocks with separate view.csss files? So we will be making and compiling view templates into a free block that replaces all view templates for the core blocks and allows their code to interact with some really beautiful jQuery, and also merge all their css into one file (main.css).
BUT, I think a better way to achieve what you want is by using a page attribute -- see these:
http://www.concrete5.org/community/forums/customizing_c5/themes-and...
http://www.concrete5.org/community/forums/customizing_c5/background...
http://www.concrete5.org/community/forums/themes/customising-theme-...