pyrocms/pyrocms — pull request #1969 by jbrennon (2012-10-21 00:44:42+00:00)
Title: Add page specific layout variables

I don't know if you've ever used modx but the best thing (in my opinion) about modx is the template variables. I've added layout variables to the pages module. I've included all english translations (not sure what i'm supposed to do with the other languages) as well as updated the details.php file to incude the 2 new tables needed to support it. (You can try it out by pulling my forked copy of it and installing pyro as normal) Oh and I included the plugin that you would need to use in order to do that.

Let me explain a little bit more what I mean. First you create your theme and all the layouts that you would need to use. Then you can add page variables to those layouts. Say you have an image or a sub heading that you display on every page, but it changes for every page. In the past when using modx we could create an image variable that would have a placeholder in the theme and then the developer can maintain control (size, height, width, styles) of that variable element while a content manage can update them safely without hurting the design. I've used them in nearly every website that I've ever built in modx, but modx feels nearly impossible to develop for, so I've switched to pyro (which is a dream come true!) I built this in a day!

Well I don't know if that paints a picture as clear as mud, but let me know if I can explain anything to you or explain anything better.

Oh and before I forget, I've put dropdowns, text elements, and images as the types of the variables you can choose from right now, but the image portion is not completed since I wanted to tie it into the files manager somehow. But I'm kind of excited right now and wanted to see if there was any interest in this being part of what your working on.

Fantastic job on pyro by the way! I'm really enjoying doing development in it.