- Posts: 85
- Thank you received: 15
Our Joomla! extensions are all OpenSource and free of charge. Support is also free of charge. Nevertheless, we do have costs that need to be paid. This is done out of our own pocket. We have had a donation button on our website for some time now, which is actually used to make donations from time to time. The donation progress bar is intended to show how much support we have received and how much is still missing to cover the basic costs, such as hosting and services. The annual costs currently amount to 356€.
Thank you for your support!
You want to support and there is no suitable platform? Write to us in the forum.
Fist things first. My structure looked good with the HTML sitemap. Let's sync the structure to get a better dev environment.As for the HTML sitemap. Everything as before, so with duplicates of the categories with parent categories and all direct links to existing items in the other menu are there too.
Yes I did not update the links yet. The should only appear if the XML is available.Bad news - does not work.
The links in the backend / the sitemap manager ( [XML Sitemap] [News Sitemap] [Images Sitemap]) always give a 404 error, but I think that's normal, according to your last message. But when calling the root /sitemap.xml I get a 404 error message too.
To explain the plan a little bit more. The old way had a really bad performance for big sites with high CPU load because the XML got really generated every time new. Caching was deactivated and a good spot for a server DOS attack in my opinion. It was very old code from the time before I overtook the project.BTW.:
I think the manual static generation of the XML sitemap is not very comfortable, especially for websites with many new articles daily and possibly multiple authors - it's a step backwards compared to how it worked with Joomla 3 and you can also easily forget to also create a new sitemap.xml after new posts. At least a function for a cronjob, which takes over the create, should be present at the end, if you want to leave that so, with the static file.
Thanks for the hints. The structure I have here currently worked with XML generation. There seems to be a flaw somewhere ...In the plugin file for the content under "\plugins\schuweb_sitemap\content\content.php" in line 212 / 213 it is written:// Define the language filter condition for the query
$params = $app->getLanguageFilter();I changed that to:// Define the language filter condition for the query
$params = $app->getLanguage();Maybe this is not correct and its better to do this:// Define the language filter condition for the query$input = $app->input;
$params = $input->getString('langtag');[/code]
I don't know exactly what the 'language_filter' should be and maybe neither is correct, but so at least the sitemap.xml file is created in the root, but is incorrect, namely element URLSET is not closed properly - it does not enclose all URL elements and is already terminated with /> at the top.
And the most <loc> elements of the <url> elements are empty e.g.:<<url>
<loc></loc>
<changefreq>weekly</changefreq>
<priority>1</priority>
</url>
<url>
<loc></loc>
<lastmod>2020-09-28T06:32:13Z</lastmod>
<changefreq>weekly</changefreq>
<priority>1</priority>
</url>Only the categories and subcategories has the entries for the location as well the other direct linked items in other menus.
Yes that is a ToDoFor the other two sitemaps, images and news, nothing seems to be generated yet.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
You're welcome!Thank you really for your effort
Please Log in or Create an account to join the conversation.
Sorry, but from this structure and the image with the Html sitemap output I am not able to figure out what would be right or wrong, but as an idea. Change the 'Menu heading' in the menu to a blog view of the root category 'Cat Blog', then subordinate the rest to this menu link (especially the sub category 'CatUnderBlog') and see what the sitemap displays.Ok already fixed
- XML formating
- content plugin
My structure I used for testingMenu
- Cat Uncategorised
- Cat Blog
- Cat UnderBlog
- article underdasds
- article undedasdasda
- article dasdasdasdas
- Article dasdasd
- Article dasdasdasdas
- Article dasdadsdasdads
- Article Your Template
- Help
- Joomla
- Typography
Yes there are some duplicates, but I didn't expect any difference.
- Category Blog - Blog
- Menu heading
- Category Blog - Blog
- Category List - Blog
- Category Blog - Joomla
- Single Article
- Single Article
- Single Article
- Category Blog - joomla
What do you expect in thsi example?
Please Log in or Create an account to join the conversation.
Yes that is the correct behaviour. The default sitemap shows everything under every menu link.Hi Sven.
I understand what you mean with the server load and the DOS and you are certainly right. In that respect, it's really progress what you have planned for the end result and the cronjob already came to my mind
However, I noticed another strange behavior today regarding the HTML sitemap and it also shows categories and their articles that are subcategories but are not linked in the menu at all.
So for example.
At the content categories:At the Menu:
- root cat blog
- Sub cat 1 blog
- Sub cat 2 blog
- Sub cat 3 blog
But in the HTML sitemap all three sub cat blog are displayed although only the first and the second one is linked in the menu. The sub blog 3 without the menu link appears only once (with all items in this category) and the sub blog 1 and 2 view with the menu links appears twice (also with all items in that categories) in the sitemap.
- root blog view
- sub blog 1 view
- sub blog 2 view
So. I will install a fresh and clean Joomla 4 instance, maybe this evening or tomorrow, to investigate this a bit closer without any further 3rd party extensions (I have some extensions installed in my developer instance for testing).You're welcome!Thank you really for your effort
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.