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!

Donate PayPal GitHub Sponsors You want to support and there is no suitable platform? Write to us in the forum.

225,49€

Duplicate entries for categories with parent categories in Joomla 4

1 year 1 month ago #461 by Sven Schultschik

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.

Fist things first. My structure looked good with the HTML sitemap. Let's sync the structure to get a better dev environment.

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.

Yes I did not update the links yet. The should only appear if the XML is available.

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. 

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.
The idea is for small site to make it manual as one shot. For all other I want to support the Cronjob feature of Joomla 4. So the Admin can configure how often he want to recreate the XML. This way every one can have the same experience and can configure it the way he needs it.
I think if you know the complete plan it is a step forward ;)
Well it will be a really big release for me ... and I really appreciate to have one who is willing to test. Wished I had more users like you.

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.

Thanks for the hints. The structure I have here currently worked with XML generation. There seems to be a flaw somewhere ...

For the other two sitemaps, images and news, nothing seems to be generated yet. 

Yes that is a ToDo

Thank you really for your effort 

If you enjoy our extensions and found our assistance helpful, please consider supporting the project as outlined at the top of the page. Your support would be greatly appreciated.

Please Log in or Create an account to join the conversation.

1 year 1 month ago #462 by Sven Schultschik
Ok already fixed
- XML formating
- content plugin

My structure I used for testing
  • Cat Uncategorised
  • Cat Blog
    • Cat UnderBlog
      • article underdasds
      • article undedasdasda
      • article dasdasdasdas
    • Article dasdasd
    • Article dasdasdasdas
    • Article dasdadsdasdads
    • Article Your Template
  • Help
  • Joomla
  • Typography
Menu
  • Category Blog - Blog
  • Menu heading
    • Category Blog - Blog
    • Category List - Blog
    • Category Blog - Joomla
      • Single Article
      • Single Article
      • Single Article
    • Category Blog - joomla
Yes there are some duplicates, but I didn't expect any difference.
What do you expect in thsi example?

If you enjoy our extensions and found our assistance helpful, please consider supporting the project as outlined at the top of the page. Your support would be greatly appreciated.
Attachments:

Please Log in or Create an account to join the conversation.

1 year 1 month ago - 1 year 1 month ago #463 by LUCiD
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:
  • root cat blog
    • Sub cat 1 blog
    • Sub cat 2 blog
    • Sub cat 3 blog
At the Menu:
  • root blog view
    • sub blog 1 view
    • sub blog 2 view
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.

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).

Thank you really for your effort

You're welcome!

Please Log in or Create an account to join the conversation.

1 year 1 month ago - 1 year 1 month ago #464 by LUCiD

Ok already fixed
- XML formating
- content plugin

My structure I used for testing
  • Cat Uncategorised
  • Cat Blog
    • Cat UnderBlog
      • article underdasds
      • article undedasdasda
      • article dasdasdasdas
    • Article dasdasd
    • Article dasdasdasdas
    • Article dasdadsdasdads
    • Article Your Template
  • Help
  • Joomla
  • Typography
Menu
  • Category Blog - Blog
  • Menu heading
    • Category Blog - Blog
    • Category List - Blog
    • Category Blog - Joomla
      • Single Article
      • Single Article
      • Single Article
    • Category Blog - joomla
Yes there are some duplicates, but I didn't expect any difference.
What do you expect in thsi example?
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.

Please Log in or Create an account to join the conversation.

1 year 1 month ago #465 by Sven Schultschik

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:
  • root cat blog
    • Sub cat 1 blog
    • Sub cat 2 blog
    • Sub cat 3 blog
At the Menu:
  • root blog view
    • sub blog 1 view
    • sub blog 2 view
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.

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).

Thank you really for your effort

You're welcome!
 
Yes that is the correct behaviour. The default sitemap shows everything under every menu link.

But what was missing and I just added. I didn't looked if the Subcategory level of the menu item. So even the Subcategory level was set to none it displayed every subcategory. This is fixed now.

If you enjoy our extensions and found our assistance helpful, please consider supporting the project as outlined at the top of the page. Your support would be greatly appreciated.

Please Log in or Create an account to join the conversation.

1 year 1 month ago #466 by Sven Schultschik
Read your initial post again and understood now what you wanted to say.

I think about it.

If you enjoy our extensions and found our assistance helpful, please consider supporting the project as outlined at the top of the page. Your support would be greatly appreciated.

Please Log in or Create an account to join the conversation.

Time to create page: 0.142 seconds
Powered by Kunena Forum