Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Social Media Footer

Will show if they have content in the icons. Just center it.

Table of Contents

Initial Page Generation

Pages will be generated when creating a new member on the manage-customers page in sitemanager. Once the Plumb Club admin who is setting up the member has added enough details, the pages can be created with the member’s customerID as the groupID, and using stems from the showroomURL field for all 4 pages. showroomURL, showroomURL + ‘-about’, showroomURL + ‘-products’, showroomURL + ‘-media’.

CSS Injection

CSS will be injected using a pageBeforePrintHeader() hook. The page itself looks up the memberShowroom data and stores it in its extraData property where it can be seen by the hook. The hook will call memberShowrooms::injectTemplateCSS() to read property and inject appropriate CSS.

Static Header

Keep headers static among each of the 3 pages within in each template choice

Header will can be a widget in pagebuilder that uses an html file, so that it isn’t editable. Most likely, there will be a global header that exists at the top of all pages.

If we need to tweak a single header, we can save the html to a different file, and then update the pagebuilder data to point to the new file. For member pages, a member-specific static header will be injected using a template file in html/pages/members/templates/memberHeader.html.

Body

The body is comprised of 3 sections, that we’re unofficially calling headertop, bodymiddle, and footer. The header here is not to be confused with the header on the top of the page. Inject bottom.

Initialize each page with the default template for that page upon creating a new member. While editing, inject different data examples into the 3 sections of the body, based on what they choose. They get 3 choices for each section (3 headers, 3 bodies, 3 footers). They will be able to edit these in the manage-showroom pageon the page itself using a custom PB2.

Social Media Footer

Will show if they have content in the icons. Just center it.

Choosing Section Options

Members will be able to choose between 3 options of top, middle, and bottom – also known as sections 1, 2, and 3 by making selections in the PB2 sidebar. Dragging and moving sections won’t be permitted in pageBuilder to keep things simple. Control over which pages are editable is explained here: https://punchmark.atlassian.net/wiki/spaces/T/pages/116424705/SiteManager+Access+Control#Limiting-PageBuilder-Access under the “Limiting PageBuilder Access” heading.

Microsite Page URLs

Microsite pages will be shown by their URL in the pages table. The pages, when generated, will all be stems of the showroom URL.
eg. Showroom URL: citizen, About URL: citizen-about, etc…

Showing The Showroom Page

The /pages/ code will be duplicated in /members/, and page URLs in the pages table can be relative to members/ for cleaner URLs. Showroom pages will have to be created in the pages table just like microsite pages.