Feature #87011

seo sitemap css should be able to overwrite

Added by Martin Weymayer 6 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
SEO
Target version:
-
Start date:
2018-11-27
Due date:
% Done:

0%

PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

It would be nice to overwrite css file Sitemap.xls defined in
ExtensionManagementUtility::extPath('seo', 'Resources/Public/CSS/Sitemap.xsl')

History

#1 Updated by Josef Glatz 6 months ago

  • Category set to SEO

#2 Updated by Richard Haeser 6 months ago

What is the reason that you want this? Normal visitors don't see this sitemap. It is only for devs / SEOs to have an easy overview.

When I created this, I also thought about overrides but couldn't come up with a valid use-case for this.

#3 Updated by Richard Haeser 6 months ago

  • Status changed from New to Needs Feedback
  • Priority changed from Should have to Could have

#4 Updated by Martin Weymayer 6 months ago

... to change default title and headline "TYPO3 XML Sitemap". My customer want to have "My Company XML Sitemap".

#5 Updated by Richard Haeser 6 months ago

It is already possible to override the XML templates by settings the templateRootPaths. You can add your own XSL to that file if you want. Does that solve your issue? I think there is quite a small amount of people that would like to override this XSL file.

#6 Updated by Martin Weymayer 6 months ago

overwriting templateRootPaths does not effect Sitemap.xsl

#7 Updated by Richard Haeser 6 months ago

See https://gist.github.com/haassie/6fb1086dcb98f7532af45c6fa083c9fe for an example how to do this. In the example only the index is changes, but you can also do this for your other Sitemap.xml

#8 Updated by Richard Haeser 4 months ago

  • Status changed from Needs Feedback to Closed

Also available in: Atom PDF