Jump to content

Region for sections and childrenpages


mel47
 Share

Recommended Posts

Hello,
I'm stuck since way too much time for something probably easy...
I have those pages and (templates)
-Home  -> Existing page on website
--About us (section)
---Committees (basic-page) -> Existing page on website
----Executive (section-admin)
-----Member 1 (member)
---Awards (basic-page) -> Existing page on website
----Prize X (section-admin)
-----Awardee 1 (awardee)

I have main.php and basic-page using regions, it works. However I fight on how listing members on basic-page. Do I should use the member/awardee template and render in basic-page? Or you I should use section-admin template and then, by children type, do some different markup?
Thanks

Link to comment
Share on other sites

Hi mel47, if you haven't yet figured this out, I think we might need a bit more information in terms of what capability your templates have - like, are there any page reference fields that could reference other pages? What page, or pages, do you want the members listed on? Since you're mentioning regions I wasn't sure if members are listed on every page, or just specific choices.

When you mention "member/awardee template", are you referring to a ProcessWire template assigned to a page type, or a PHP file (template), because I got confused when you asked if you should use the member/awardee template and render it in basic-page which is itself a ProcessWire page template...and if you did intend to render an entire page's output inside another template (i.e.: basic-page) then that would seem you wanted members included on quite a few pages.

Link to comment
Share on other sites

Hello,
Sorry if it was not clear, I think it wasn't also in mind. After thinking again about it, I just switched everything to a RepeaterMatrix and it becomes way easier.

Thanks,
Mel

PS but to answer questions : there is only one page (a basic-page) who should listed all members. And I realized I shouldn't use at all member template, since I don't want individual page for each member.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...