-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
create-payload-app@beta website template footer links issue #9285
Comments
@jbryandev Had the same issue and found a solution. There is a helper which fetches the footer items, but the depth is not sufficient.
to
(notice the default depth parameter), it works as expected |
Thank you @AWagnr. I forgot to put in my OP that I had caught that as well. However, in my case, that didn't initially fix the problem. I did eventually get it working, and I think it was a caching thing because I didn't change anything else but it started working after I cleared my browser cache. |
Hey @paulpopus , can you take a look at the |
Pushed a fix for this in the template. It will now fetch the footer with depth 1 |
This issue has been automatically locked. |
Describe the Bug
The beta website template currently does not show internal page nav items even if those are added in the footer collection. It only shows custom URL nav items. In my debugging I could not find any obvious reasons as to why only custom links are shown in the footer. The header code works just fine and seems to be pretty much identical to the footer, so it is not immediately clear as to why the footer is having trouble.
Link to the code that reproduces this issue
https://github.com/jbryandev/payload-cms-footer-bug
Reproduction Steps
Which area(s) are affected? (Select all that apply)
area: templates
Environment Info
The text was updated successfully, but these errors were encountered: