gpEasy Feedback

15 votes
Vote Up

Allow multiple named content areas on the same page

Follow This IdeaBy site3 years ago9 Comments

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).

3 years agoAdd Comment

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.

3 years agoAdd Comment

 

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.

 

3 years agoAdd Comment

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

2 years agoAdd Comment

 

That really would be a big step forward.
I would certainly use gpEasy more often, if there would be no such limitation on only one (dynamic) conten-area.
This was - in some cases - the killer-argument not to choose gpEasy.

Edited: 2 years agoAdd Comment

This doesn't truly satisfy this feature request, however it may be worth it to some to check out the Site Page Extra plugin to get a least dynamic content in a gadget.

2 years agoAdd Comment

The following works fine.

gpOutput::GetExtra('2nd_Content','Edit 2nd textblock now');

 

With GetExtra(' ',' ') you can add any number of editable content blocks.

10 months agoAdd Comment

Silkester, you're right that GetExtra allows unlimited named extra blocks on the same page. However, they don't have the same functionality as the GetContent() block to be able to add sections, attributes, etc.

 

 

10 months agoAdd Comment

I see the flaw in

gpOutput::GetExtra('2nd_Content','Edit 2nd textblock now');

it's the same content on every page, not very useful. Working with just one content block is very taxing for end user who update their sites only every second month. To use a CM with small sites is usual done when the person editing isn't savy with their computer. I hope for more content blocks in the near future.

10 months agoAdd Comment

New Comment

You must be logged in to comment on an idea.

gpEasy News

4.3.2
2/18/2014

The final release of gpEasy 4.3.2 is now available. This is primarily a third-party package ... Read More

4.3 Final
11/4/2013

The wait is over. The final release of gpEasy 4.3 brings some exciting new features ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Luzern (Schweiz): Konzeption, Planung und Erstellung Ihres Internet-Auftritts, Betreuung und Aktualisierung Ihrer Website, Programmierun...

Find out more about gpEasy's Provider Spotlight

Log In

  Register