Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

component: node--landing_page (Benefits Hub Landing Page), Related Benefits #16607

Closed
6 tasks
Tracked by #8645 ...
timcosgrove opened this issue Jan 2, 2024 · 0 comments
Closed
6 tasks
Tracked by #8645 ...
Assignees
Labels
Accelerated Publishing next-build FE Repository that will replace content-build. Uses NextJS, builds static pages.

Comments

@timcosgrove
Copy link
Contributor

timcosgrove commented Jan 2, 2024

Description

Build out a component for 'Benefits Hub Links', node--landing_page component. This is not a layout, but rather a component.

Tasks

Preview Give feedback

Supporting detail

CMS Info

Paragraph/Node: node--landing_page
CMS structure: types/landing_page/fields
JSON:API query: jsonapi/node/landing_page

Content Build info

Existing template(s):benefit-hubs-links.drupal.liquid
Existing/example existing GraphQL:fragment in several node types
Logic notes:
n/a

Next Build info

Example next-drupal query:

  const params = queries
    .getParams()
    .addPageLimit(10)
    .addInclude([

    ])

  const data = await drupalClient.getResourceCollection('node--landing_page', {
    params: params.getQueryObject(),
    withAuth: {
      clientId: process.env.DRUPAL_CLIENT_ID,
      clientSecret: process.env.DRUPAL_CLIENT_SECRET,
    }
  })

Required properties off the entity are simple strings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accelerated Publishing next-build FE Repository that will replace content-build. Uses NextJS, builds static pages.
Projects
None yet
Development

No branches or pull requests

2 participants