Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
christianch
Experienced
Topic Author
Posts: 49
Joined: 08 Mar 2021, 03:27

x3 Sitemap php

18 Oct 2021, 14:43

Hello Karl,

As you know, my use of X3 is spécial because it is located at the second level behind a home page in html. 
So, how can I generate a site map that takes into account all the pages created with x3 with hidden pages in the menu ... ?
Many Thanks

The home page: https://lepetitbleausard.fr
but X3 pages are here: https://lepetitbleausard.fr/Bleau/
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: x3 Sitemap php

19 Oct 2021, 00:04

Of course, your sitemap exists for X3, but it only contains your non-hidden pages:
https://lepetitbleausard.fr/Bleau/sitemap.xml

May I ask for what reason you are hiding them from the menu? Too many folders?

It's not that difficult to maintain your own sitemap.xml. You could even add X3 pages into your "home page" sitemap.xml. The structure for a page in sitemap.xml:
Code
<url>
  <loc>https://lepetitbleausard.fr/Bleau/</loc>
  <lastmod>2021-09-26T17:27:44+02:00</lastmod>
  <changefreq>monthly</changefreq>
  <priority>0.7</priority>
  <image:image>
    <image:loc>https://lepetitbleausard.fr/Bleau/content/index/headerbg.jpg</image:loc>
  </image:image>
</url>
 
User avatar
christianch
Experienced
Topic Author
Posts: 49
Joined: 08 Mar 2021, 03:27

Re: x3 Sitemap php

19 Oct 2021, 05:00

May I ask for what reason you are hiding them from the menu? Too many folders?
Yes  :wink: more than 200 climbing Areas and more than 4000 images .... it's could be a little been confuse for the visitor
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: x3 Sitemap php

19 Oct 2021, 05:30

Alright. But let me ask, did you HIDE all pages separately? There is another option "hide" in page menu settings, which hides a page from menu, but does not hide it from the sitemap. Perhaps you can try? Other than that, there is nothing more X3 can do in regards to the sitemap.xml ... Sitemap in X3 is pretty simple, and maybe in the future I will look into upgrading how it works.

Another option: Are all your "galleries" inside a single folder? If so, you could create a page "view all" which lists ALL the folders in a minimalistic layout. Search engines will then find all the links from that page, and you wouldn't need sitemap.xml for that.

Last option would be to create your own sitemap XML output by reading the dirs. Should not be too complicated if you feel it's worth the time and effort.
 
User avatar
christianch
Experienced
Topic Author
Posts: 49
Joined: 08 Mar 2021, 03:27

Re: x3 Sitemap php

19 Oct 2021, 06:42

Another option: Are all your "galleries" inside a single folder? If so, you could create a page "view all" which lists ALL the folders in a minimalistic layout. Search engines will then find all the links from that page, and you wouldn't need sitemap.xml for that.
I Think it's a good solution ......... 
https://lepetitbleausard.fr/Bleau/Cartes/
But for the thousand pictures I think I will build my own xml file like your example
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: x3 Sitemap php

31 Aug 2023, 05:43

I know this is an old post, but I have an update coming in regards to Google Images Sitemap in X3, please read:
viewtopic.php?f=51&t=10650&p=49984