Landing page redirect

Permalink
Hi - just starting with a real evaluation of C5, so forgive me if this is super easy. I'm looking for a way to simply setup a landing page redirect. My site structure looks like this:

MainPage A
- SubPageA Pg1
- SubPageA Pg2
- SubPageA Pg3

MainPage B
- SubPageB Pg1
- SubPageB Pg2
- SubPageB Pg3

Most of the time, MainPage - for example, MainPage A - will be a landing page - ie, it has content that describes SubPages. However, in special cases - for example, MainPage B - the client doesn't have content to describe the subpages (and unfortunately this is not flexible - the content must match a printed document exactly). Therefore, in this case, MainPage B should just display SubPageB Pg 1's content - and the sub nav (links to SubPageB Pg1 - Pg3) should display in the subnavigation.

Is this possible?

Thanks,
Evan

 
ScottC replied on at Permalink Reply
ScottC
For MainPageB, you can have a global block that links together the block of content on MainPageB and SubPageB Pg1. If MainPageB gets its own content, you can delete the instance of the global block on MainPageB and put in a standard content block in its place.

The subnav will work as intended regardless of the shared blocks between MainPage B and SubPageB Pg1 etc.
evanadelman replied on at Permalink Reply
That might be an interesting approach - I've been reading this threadhttp://www.concrete5.org/community/forums/usage/pages_underneath_ex... as well - appears it may be a cleaner approach, but not sure...giving it some more thought.
ScottC replied on at Permalink Reply
ScottC
getAreaBlockCount() or whatever the function is called, and if that is 0 then grab the area from the "parent" page and render that instead. The global is the easier method and more intuitive, the latter is about 10 lines of code and would arguably require a new page type.