This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

maxDubovsky
maxDubovsky

Sitemap plugin works great to me, I use resolveMenuItem functions to bind sitemap to my plugins. But issue I see with multilanguage cms pages. How can I define all language versions of the page into sitemap?

One more question about translate plugin. Is there a chance to set lang_href urls like it is recomended in google.analytics and how ?

Last updated

maxDubovsky
maxDubovsky

Regarding to this: maybe it is possible to use N sitemap.xml's on the website, defined in robots.txt ?! Then each sitemap will have the language version of it. Many sitemaps may be registered in robots.txt

sspoon
sspoon

This would be very helpful! @maxDubovsky - how did you solved this? Thanks!

maxDubovsky
maxDubovsky

It appears I have not so many simple cms pages, so I go go through them manualy adding each of them. resolveMenuItem I'm using for plugins and there I'm generating 3 different urls for one item. But I'm having another issue then requesting a very large number of records, so had to precache, generate separatly, and fight a controller. Would like to know how to deal with large numbers of records?

alexwenzel
alexwenzel

maxDubovsky said:

It appears I have not so many simple cms pages, so I go go through them manualy adding each of them. resolveMenuItem I'm using for plugins and there I'm generating 3 different urls for one item. But I'm having another issue then requesting a very large number of records, so had to precache, generate separatly, and fight a controller. Would like to know how to deal with large numbers of records?

I am facing the same problem. Anyone has experience with this?

maxDubovsky
maxDubovsky

I am facing the same problem. Anyone has experience with this?

Looks like the solution might be very simple, you may create another Model under any of your plugins, lets say we will call it: SitemapCached. Then, simple way is to create button and method in controller which will populate the table using more complex logic. There is a simple way to make this run by portions of data. Another option is to have a taskScheduler which will populate model if it will be necesary, also you may use cronJobs for that to update them. resolveMenuItem function will just query one model and it will be relatively fast and efficient.

1-6 of 6

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.