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
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
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.
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.
The subnav will work as intended regardless of the shared blocks between MainPage B and SubPageB Pg1 etc.