Giter Site home page Giter Site logo

Comments (6)

Schweriner avatar Schweriner commented on July 20, 2024

Indeed a bug that should not happen if no rootline is configured in the constants. Did you configure a rootline for your sitemap in the extension constants?

from tgm_copyright.

helsner avatar helsner commented on July 20, 2024

No i did not, but i know of the setting.
I would guess, that i would have to define that for all sites? We have a customer with around 100 pagetree segments, that are all small sites but would like to use that.

Best case would be, that the request automatically detects the Site i'm on, what to you think?
In my case is now used the already used TYPO3_REQUEST like follows:

/** @var Site $site */
$site = $GLOBALS['TYPO3_REQUEST']->getAttributes()['site'];
$copyrightReferences = $this->findForSitemap((string) ($site->getRootPageId() ?? ''));

from tgm_copyright.

helsner avatar helsner commented on July 20, 2024

maybe in case of the extension one could adapt and have the Site method as fallback in case rootlines is empty.
Also this can be limited to the sitemap functionality.
I cannot think of a case where there is more than one rootline wanted for the sitemap tbh, but i value your opinion as maintainer here, maybe you got better insights!

from tgm_copyright.

Schweriner avatar Schweriner commented on July 20, 2024

I pushed a possible solution for multi-domain sitemaps but indeed maybe it makes sense to only detect the images of the current page. I will read a little bit about the sense of a image sitemap which contains images of other domains...

from tgm_copyright.

helsner avatar helsner commented on July 20, 2024

ah! it does not contain images of other domains, but actual pages.
So the listing of the images is wrong as well as the page their related to

from tgm_copyright.

Schweriner avatar Schweriner commented on July 20, 2024

It should contain all images within one rootline or all rootlines if defined, located to the page where they are used.

from tgm_copyright.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.