Topic on Extension talk:AutoSitemap

Jump to navigation Jump to search
AngelSanz1977 (talkcontribs)

First of all, thanks for this very useful extension!

I'm checking it and have one question that I am not able to solve

Is there any way to set priority to a specific page or for all pages? Maybe some var in the LocalSettings.php?

I have been reviewing the source extension (ManualSitemap) and I have seen that it had some configuration options in this regard. I tried to do tests modifying the LocalSetings file but I can not get any of them to work.

Any help will be appreciated!

Thank you!

Martynov Maxim (talkcontribs)

Check v1.3, I've added options for namespace, page or whole site priority set.

AngelSanz1977 (talkcontribs)

Thanks very very much my friend !!

:)

AngelSanz1977 (talkcontribs)

Hello again Martynov,


I have already installed the updated extension and the new functionalities work correctly. Great job! Thank you!


Abusing your kindness I would like to ask you one last question. Unfortunately I have found a small problem that I can not solve:

When I add a priority exception for some page it stops working if the title of the page contains some special character, such as the letter "ñ" that we use in Spain or some letter with an accent, as "á" for example.

I have done some tests changing the coding but I can not get it to work. For example, in my main page ("Página principal" in spanish) in this way it does not work:

  • $wgAutoSitemap ["priority"] ['Página principal'] = 0.8;

But neither does it:

  • $wgAutoSitemap ["priority"] ['P%C3%A1gina principal'] = 0.8;

Nor with other combinations like this:

  • $wgAutoSitemap ["priority"] [''P%C3%A1gina_principal'] = 0.8;


Do you know if there is any way in which I can solve this problem?


If there is no way to fix it, I can always leave unchanged the pages with titles that contain some special character but in my language there are many of them and I prefer to ask you first.


Thank you very much again for your time and attention!


Best regards

Angel

Martynov Maxim (talkcontribs)

Can you add {{FULLPAGENAME}} to page and them check it return value? Extension uses exactly the same name as get by this function.

Also maybe there is some issue with files code page (non-Unicode). Which one do you use?

Reply to "Set priority to pages"