Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
sub-pages into one page
#1
I want to make a theme for a site which will have complex long page layouts, as is the fashion. so a page might have a full width banner and title then some full-width text then three columns of something punchy, then an article with a sidebar, etc. etc.. I thought I would achieve this in a flexible way by making main pages which contain their own child pages. Each child page would use a template - full width, 3 columns, left sidebar, whatever and I would build up the parent page like that. I have made a sketch, below.
   

So what would go in my template.php?

First the header with the menu of parent pages, then

get first child page content
get second child page content (if it exists)
get third child page content(if it exists).. and so on

Then the footer.

But what would the actual php code need to be? I don't think I would need page titles. I don't think I would need any child-menu or i18n plugin either. The parent pages wouldn't have any content of their own. I wouldn't need anchors down the page like a one-page site.

Not a feature request, but I need some help with rudimentary php. Is it as simple as I think?
Reply


Messages In This Thread
sub-pages into one page - by Timbow - 2014-02-05, 07:52:19
RE: sub-pages into one page - by shawn_a - 2014-02-05, 08:30:03
RE: sub-pages into one page - by Timbow - 2014-02-05, 08:43:57
RE: sub-pages into one page - by shawn_a - 2014-02-05, 10:32:51
RE: sub-pages into one page - by shawn_a - 2014-02-05, 10:40:35
RE: sub-pages into one page - by shawn_a - 2014-02-05, 10:52:56
RE: sub-pages into one page - by shawn_a - 2014-02-05, 14:29:54
RE: sub-pages into one page - by Timbow - 2014-02-05, 18:24:10
RE: sub-pages into one page - by Timbow - 2014-02-20, 00:29:40
RE: sub-pages into one page - by Timbow - 2014-02-20, 02:04:31
RE: sub-pages into one page - by shawn_a - 2014-02-20, 02:40:48
RE: sub-pages into one page - by shawn_a - 2014-02-20, 02:56:43
RE: sub-pages into one page - by shawn_a - 2014-02-20, 03:12:23
RE: sub-pages into one page - by Timbow - 2014-02-20, 04:51:16
RE: sub-pages into one page - by shawn_a - 2014-02-20, 05:18:01
RE: sub-pages into one page - by Timbow - 2014-02-21, 01:15:38
RE: sub-pages into one page - by smsHH - 2017-09-29, 02:10:28



Users browsing this thread: 1 Guest(s)