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.

93,33€

Duplicate entries for categories with parent categories in Joomla 4

6 months 2 weeks ago - 6 months 2 weeks ago #467 by LUCiD
Hi Sven.

I have now installed a new, clean Joomla 4 instance with sample data and your sitemap extension locally and narrowed down the error a bit. The error must be in the plugin for the content, or related to this. With the screenshots you can see how everything belongs together and behaves accordingly.

This shows the content / categories of the sample data and how I arranged it.


This shows the setting of the main menu and mirrors the structure of the category setting.


This shows the html sitemap output with the main menu on the right, with the content plugin disabled. Everything is displayed correctly.


Now the html sitemap output with the main menu, but with the content plugin enabled. Now the subcategories are duplicated - so this is wrong.


Now again the settings of the main menu, but with the menu item Help unpublished.


Here the html sitemap output with the main menu on the right, with the Help Item unpublished and the content plugin disabled. Everything is displayed correctly.


And lastly the html sitemap output with the main menu on the right, with the Help Item unpublished, but the content plugin enabled. Now the subcategories are duplicated again and the help item is displayed - so this is also wrong, both duplicated subcategories and the displayed help menu item in the sitemap. But the help is displayed only once, without a duplicate, although this menu entry is unpublished and should not be displayed in the sitemap at all.
Attachments:
The following user(s) said Thank You: Sven Schultschik

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

6 months 2 weeks ago #468 by Sven Schultschik
Hi,

I've a new alpha version 4 for you.
  • Own column for default state
  • removed stats
  • show links to generated XML files
  • add option to remove duplicates <-- default off, you need to activate
  • fix fix all subcategories showed even if subcatoegy is hidden
  • fix invalid XML
  • fix undefined method getLanguageFilter
Attachments:
The following user(s) said Thank You: LUCiD

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

6 months 1 week ago - 6 months 1 week ago #469 by LUCiD
Hi Sven.

Unfortunately, it's still wrong, at least for me. Here are two screenshots.

The first one of the HTML sitemap with the content plugin enabled, the Help menu item disabled and in the sitemap manager at the sitemap item options 'Remove duplicate' enabled (yes).
Now only the items of the subcategories has duplicates, not their article entries. The Help category and its articles still exists although it is switched off in the menu (right).


Now the output of the xml sitemap. 
The first base URL (Home) in the <loc> is wrong. For all other <loc> entries the URLs are completely missing, except for those of the categories and the entry for the HTML sitemap, but they are relative and not full URLs (the protocol and the domain are missing). 


Add: If you need a bigger image of the xml sitemap output I could make one and put it in a zip, to bypass the file size restriction for images.
Attachments:

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

6 months 1 week ago #470 by Sven Schultschik
- fixed empty loc
- fixed wrong base url
- to remove the menu items which are duplicated was a tricky one and risky option which is a new additional option remove duplicate menu
Attachments:
The following user(s) said Thank You: LUCiD

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

6 months 1 week ago - 6 months 1 week ago #471 by LUCiD
Hi Sven.
Only briefly, because I still want to test it with my, to J4 migrated website (later today, or at the weekend), but at first glance, everything looks good so far with my recent J4 test installation.

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

6 months 1 week ago - 6 months 1 week ago #472 by LUCiD
OK, I have now also tested this with my migrated website on the local server and everything looks quite good so far.
Since it is still an alpha version, I will wait to use the sitemap on the live site until at least an RC is available.

Thank you Sven for your efforts and the implementation - see you then and all the best!

Add: 
It would be nice, if you leave a short message here when you are ready with the RC or stable version.
The following user(s) said Thank You: Sven Schultschik

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

Time to create page: 0.172 seconds
Powered by Kunena Forum