[Solar-talk] layout generator
Rodrigo Moraes
rodrigo.moraes at gmail.com
Wed Aug 2 16:51:40 PDT 2006
On 8/2/06, Jeff Surgeson wrote:
> Line #66 $this->one_true_layout = $view->newHelper('oneTruelayout');
tx, will fix this.
> It now loads the layout page and by changing $this->_layout_config = $config5
> from 1 - 5 it changes some but not all the $config settings.
> It is using the config setting as it adds or delets blocks but they appear as
> vertical div blocks and not as col's and ignores the width setting and is all
> static.
>
> Am I missing something? I see it sets the headers to load the non existant
> $this->layout_style = array('/onetruelayout/css', '/onetruelayout/css2');
> stylesheets.
>
> Should I have created these stylesheets first?
Jeff, I've tried to make a quick trick here, but it seems that this
will not work on all Solar installs. Hm, have to find an universal way
to do this trick.
See: actionCss() and actionCss2() do nothing but deliver "dynamic" CSS
contents to the browser. I thought this would be fine for an example
like this, because you don't have to create those files until you find
the layout skeleton you want by changing the configs. css2 is, by the
way, just a style with some ugly colors so you can see the elements
sizes and positions.
So, when those actions are called from the page head, it is supposed
to call real actions. In theory, Solar is delivering 3 but not one
page (the page + 2 css stylesheets). Maybe for you what would work is
'/index.php/onetruelayout/css'? I have some rewrite rules working
here, don't know how to make this work on all installs.
By accessing the css's actions directly via browser, you'll know when
it works when a stylesheet appears. Then replace the values in
$this->layout_style = array() by the action addresses.
Sorry about this, and please let me know when you get the magic working.
rodrigo
More information about the solar-talk
mailing list