Skip to content

New Page Layout Picker: PTK categories endpoint #49851

Open

Description

Tracking Andy's suggestion pbAok1-1QJ-p2#comment-3945 for pre-work in ETK that would be needed to fetch list of layouts from dotcompatterns.wordpress.com so that the design urls can be passed to mshots.

From Andy, see pbAok1-1QJ-p2#comment-3945:

So, the request flow could be something like:

  • Request for all categories
  • For the currently selected category, do a call to ptk/patterns to get all the layouts for that category (or say a page of 6 patterns, and lazy load the rest as the user scrolls down?)
  • Construct image urls for mShots using the pattern ID and pass it to something that will render the pattern. (Currently we send - mShots to a template/demo endpoint url with the pattern ID appended)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions