gpEasy Feedback
Allow multiple named content areas on the same page
Currently on a page within template.php, $page->GetContent(); is called to obtain the main content for that page.
It would be useful to have other areas within a page to obtain content specific for that page i.e. a side bar. Further they would be accessed by calling something like $page->GetContentArea('sidebar'); yet have all the same functionality as $page->GetContent(). This allows for more complex layouts. There may be other/better ways to do it already.
I've already modified a gpEasy 2.3.3 install to do this. Let me know if you want a copy.
Comments
I've been thinking about multi-column layouts, which is basically the same. I also think it would be usefull to have more than one (non-static) content area in a template sometimes.
The title is just a little misleading, since you can have as many content areas as you wish already, but those are static for all pages with that layout (like the header or footer areas).
Yeah perhaps a better title would be "Multiple named dynamic content areas on a page" - I'v just referred to the static content as extra content.
Columns is a great example of this. Another one is banners on a page.
That's just what I was looking for. Could you give an example or link on how to do "Multiple named dynamic content areas" on the same page.
site, could you send me the code you used? I have some ideas for multi-area layouts and would like to test them out. Please contact me at info at itrichter de
New Comment
You must be logged in to comment on an idea.