I could but there are probably 20-25 views for each section that would use each of Section A and Section B layouts. It's a pretty large site.
I didn't mention that in my original post. -J On Nov 18, 4:27 pm, David Roda <[email protected]> wrote: > I'm probably misunderstanding your problem, but is there a reason you can't > append the secondary header you want to the top of the views in Section A > and B? > > On Wed, Nov 18, 2009 at 4:47 PM, Jesse <[email protected]> wrote: > > I'm having a layout issue and I'm not sure how to solve it. > > > Problem: > > > I have a default layout that contains my general header and footer > > information. There are two sections of my website that run coupons. > > Let's call them Section A and Section B. These sections need to > > include the header and footer that the default site uses, but then > > also append a secondary header for visual effect. Its' almost as if > > there was a layout wrapped inside of another layout. > > > The secondary header info that needs to be passed for Section A and > > Section B is different. It mainly includes some images, text and a > > couple stylesheets that differ it from the default layout. The easy > > way to do this would be to have 3 layouts, but the three layouts will > > almost be identical except for a couple element calls and style > > sheets. > > > Solution: > > My first solution I see would be to "wrap a layout in another layout". > > I don't think this is possible but makes sense in my head. > > > My second solution was to create a template header and template footer > > element that includes the header and footer info from the default > > layout, and just call these at the top and bottom of the Section A and > > Section B layouts. The problem with this is that the header element > > will not recognize the "$title_for_layout" or "$script_for_layout" > > variables (both of which I use a lot). > > > Any other suggestions? > > > -- > > > You received this message because you are subscribed to the Google Groups > > "CakePHP" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<cake-php%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/cake-php?hl=. -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/cake-php?hl=.
