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

7 months 5 days ago #455 by Sven Schultschik
Yes I will notify you.

Currently I need to fix the xml creation which is broken in the redesign of the application.

br
The following user(s) said Thank You: LUCiD

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

6 months 3 weeks ago #456 by Sven Schultschik
Small update.

The redesign is going on. XML generation is totally change. And the com_content plugin is working again, and I don't see duplicate entries. But there are still some code pieces which are very old and don't make sense. So need to investigate some more.

Which plugins do you use for sitemap?
The following user(s) said Thank You: LUCiD

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

6 months 3 weeks ago #457 by LUCiD
Hi Sven.
Thanks for the update and glad to see things are progressing.

As I mentioned in the initial post, I only use the content plugin.

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

6 months 1 week ago #458 by Sven Schultschik
Hi LUCiD,

I have a first alpha where only com_content work.

A meant BC break is, that the XML needs to be created in the backend and than it is directly located in your joomla root as xml file. No URLs with on the fly generation anymore.

A known issue on a update from v4 to v5 the menu item breaks for the HTML sitemap. This I need to fix, but for an alpha you can recreate the menulink.

Keep in mind an alpha is a very early stage and should only be used in a local test environment.
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 #459 by LUCiD
Hi Sven.

OK, I will test it with my local installation and the latest update of Joomla 4 v4.4.0 ASAP (maybe on Sunday evening) and report back how it works.
I'll uninstall v4 completely before I install the new v5 with a new menu item.
 
Until then and have a good one! 

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

6 months 1 week ago - 6 months 1 week ago #460 by LUCiD
Hi Sven.
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.

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.

The browser page title is also missing, although I entered it at the menu link to the HTML sitemap at the Page Display tab.

Addendum:
Oh, I just discovered the "Create XML" switch above, which I hadn't noticed before, but even with that I get an error in the backend, for all three XML sitemap options the same:
An error has occurred.
    0 Call to undefined method Joomla\CMS\Application\AdministratorApplication::getLanguageFilter() 

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['language_filter'] = $app->getLanguageFilter();
I changed that to:
// Define the language filter condition for the query
$params['language_filter'] = $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.

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

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.

Have a good one!

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

Time to create page: 0.143 seconds
Powered by Kunena Forum