Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Initial Page Generation

Pages should be generated using a button on the manage-showrooms 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 be a widget in pagebuilder that uses an html file, so that it isn’t editable. 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 top, middle, and bottom.

Initialize each page with the default template for that page. 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 on 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.

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.

  • No labels