SiteMap is not Display in Netlify Visual editor, In Local Visual editor it's working and show Site Map

@hrishikesh @nathanmartin @sid.m @luke @clarnx

Issue is In my local Sitemap is Visible but when Deployed in netlify then Netlify visual editor give this Warning “Your sitemap is currently empty”.

@alpaparmar Note:

  • I don’t work for Netlify
  • I don’t use the Visual Editor
  • I don’t know what you’re talking about

@nathanmartin

I get this below warning.

In My Local Sitemap is display properly.

:person_shrugging:

Have you clicked the Here’s what to check button?

Yes, but the reason is In my local, Sitemap is shown but in Netlify visual editor it’s give the warning.

@alpaparmar You’ve said that three times now, I understood it the first time.

What’s going on with your local doesn’t matter much, what’s happening on Netlify does.

What information does it provide when you click that button?

I don’t even know what the “Visual Editor” is, so the screenshot you’ve provided so far is literally all that I’ve ever seen to do with it. My ability to help is limited to pointing you at what you may have missed.

It redirect to this page Content Modeling | Visual Editing Docs

Yeah, I’m not going to read that documentation.
I’ve got no need of it myself, and better things to do with my time.

You’ll need to wait for assistance from a Netlify staff member (or someone that has at least used the “Visual Editor”).

@nathanmartin Thanks

You’re welcome, sorry I couldn’t help!

I can only really assist with basic Netlify functionality.
The things that existed during the years I hosted with them, I stopped hosting with them late last year.

I believe the “Visual Editor” is what was once Stackbit, and I never used that either.

This announcement is from last month, (so it’s no wonder I’ve got no idea):
https://www.netlify.com/blog/announcing-streamlined-visual-editing-setup-in-netlify/

Just a heads up that it’s a little rude to abuse the @ too.

what site is this about?

@sid.m

SiteMap Navigator not working in Production Visual editor. In Local It’s visible.

We’ll need the name of the site hosted on Netlify in order to investigate further

Factoring in this unnecessary duplicate thread:
https://answers.netlify.com/t/sitemap-navigator-not-working-in-production/123196

You’ve now mentioned the issue five times, but provided very little detail.
There’s a phrase for this which is “like pulling teeth”:

Very difficult, especially to extract information from someone.
For example, It’s like pulling teeth to get a straight answer from him .

There’s no need to repeat yourself, just provide the details that people request of you.
Answer @sid.m and give them your site name.

@sid.m

Here is the Site name: alpaashavan.

For more Details, Below I have used same as configuration in my stackbit.config.ts

Also I have checked urlPath and it’s correct.

This is your siteMap code: testingAshavan/stackbit.config.ts at main · alpaparmar/testingAshavan (github.com). You seem to be filtering the data. Have you checked if you’re returning any data in there?

@hrishikesh
Thank you for answering.

Yes, I have checked and it’s returning data. Below is one of the example

{
  type: 'document',
  id: 'content\\pages\\testimonials.md',
  srcType: 'git',
  srcProjectId: '9a0364b9',
  manageUrl: 'content\\pages\\testimonials.md',
  modelName: 'PageLayout',
  status: 'published',
  createdAt: '2024-08-02T05:49:23.807Z',
  createdBy: undefined,
  updatedAt: '2024-08-02T11:49:31.316Z',
  updatedBy: undefined,
  locale: undefined,
  context: { filePath: 'content\\pages\\testimonials.md' },
  hidden: undefined,
  fields: {
    title: { type: 'string', value: 'Testimonials' },
    slug: { type: 'slug', value: 'testimonials' },
    sections: { type: 'list', items: [Array] }
  }
}

I’ve asked the devs to take a look.

The devs mentioned that we’re checking your preview branch and the code in that: testingAshavan/stackbit.config.ts at preview · alpaparmar/testingAshavan (github.com) is different from the main branch. Is the code in the preview branch correctly returning documents in your sitemap?