Making Websites With October CMS - Part 38 - Creating Sitemap.xml

preview_player
Показать описание

There are sitmap plugins for October CMS that you can use, and that is ok. The problem with that is that they mostly support only Pages, Static Pages and Blog plugin out of the box. For any other model on your site you would have extend that plugin to recognize your custom model.

So that is one way you could tackle the sitemap problem. The other way, that I will show you in this video is to create a `Route` that will return a view with XML sitemap. I think that by doing this you have much more control over how your sitemap will look.

### Code used in this video

### Consider buying me a beer, thanks ;) !

Рекомендации по теме
Комментарии
Автор

I noticed an issue with your movies url (a '/' is missing in the XML file. You would rather write <loc>{{ url('/movies/movie') }}/{{ movie.slug }}</loc>. Thanks for this great video.

disvst
Автор

Awesome!!! Thanks, and please make us more OctoberCMS content :)

sisim
Автор

sounds interesting about next video.eagerly waiting for your next videos.thank you so much

B.S
Автор

Dear sir, I learned everything from your tutorials. Thank You Very Much. I want to aks a small question, how to get the image URL in the sitemap.

CS-kzxm
Автор

Great
In my CMS there is also a Sitemap in Setting, which I want to append here. Can you help me?

truongquang
Автор

I got an error message when entering the sitemap url:
"No hint path defined for [watchlearn.movies]."
line 112

How to fix that?

davidricardo
Автор

Thank you for the Video!
very usefull. i'll remove my sitemap extension an do it your way. i just need to figure out how to add some cms and static pages easily.

new video series? great - i a very exited to see some vue.js stuff and more backend funtionality.

aax
Автор

Hello Ivan, I'm watching and learning from your videos! Thank you very much for the deep explanation and effort, I'm glad I've found these lessons.

Which Editor are you using? Is it sublime text editor? Please tell me how to make it look like same as yours, it's very clean.

sol
Автор

Thanks for this! If you had two plugins, what would be the best way to combine the maps?

rupertgriffiths
Автор

Hello sir do you tutorial for autocomplete in octobercms

urbisunom