My company is currently evaluating EE to replace a 500+ page somewhat static site. EE seems to do at least 90% of what we’re looking for, but we’ve sort of run into a small speed bump. I’m sure there is a more elegant way of doing what we’re thinking, but wrapping my little brain around the major paradigm shift that would be EE is giving me a headache. Here’s the background:
While the current site is mostly static, it is written in PHP and code reuse is used as much as possible (i.e. headers, footers, logos, menus, etc.). Some of the pages load various JS libraries, but to make loading faster, we only load the JS libraries if the individual page needs it (i.e. load lightbox if it’s a gallery page only). Other pages do not need certain other modules and page elements loaded. We accomplish this by defining about 10 PHP variables at the top of each static page and setting them on or off depending on if the page needs it or not, and loading them or not in the header based on the variables.
We’d like to continue the same sort of idea in EE, if possible. I’d love to be able to create custom fields in a weblog that are of type checkbox, but that doesn’t seem to be an option. The only way I can think to do what I want is to create a textarea custom field and set the PHP variables in that field, and turn on PHP processing in the header template (which would save time since I could use the existing code). Is this the best way or is there a more elegant solution?
Thanks for the assistance as we continue to evaluate EE.