Skip to content
Discussion options

You must be logged in to vote

Hey @P90Costa! I think you also posted this in the Discord and got the solution working, so I'm pasting those messages here for anyone who might run into this in the future:

[User 1]
Add the header and footer to the root as a wrapper for other components.

[User 2]
I’ve already done that, but I wanted to use Puck's fields. The issue is that Puck only saves per page, not per project. Is there any solution for this?

[User 3]

const save = async (data: any) => {
  if (!Array.isArray(data?.content)) return;

  const header = data.content.filter((i: any) => i.type === "header");
  const footer = data.content.filter((i: any) => i.type === "footer");

  const pageContent = data.content.filter(

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by FedericoBonel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants