GithubHelp home page GithubHelp logo

Comments (5)

nicodh avatar nicodh commented on June 15, 2024

What is the icon path in your instance?
Should be something like:
/typo3/sysext/core/Resources/Public/Icons/T3Icons/actions/actions-edit-delete.svg

from extension_builder.

floen-de avatar floen-de commented on June 15, 2024

I have the same problems. (TYPO3 7.6 - ext:extension_builder: 7.6.18)
I use subdirectorys.
i.e.: domain.org/project/typo3/

For me relative Urls works:

-                         delButton.innerHTML = '<span class="icon-markup"><img src="/typo3/sysext/core/Resources/Public/Icons/T3Icons/actions/actions-edit-delete.svg" width="16" height="16"></span>';
+                         delButton.innerHTML = '<span class="icon-markup"><img src="./sysext/core/Resources/Public/Icons/T3Icons/actions/actions-edit-delete.svg" width="16" height="16"></span>';

from extension_builder.

liayn avatar liayn commented on June 15, 2024

I can confirm. The "new icons" commit 1deda45 is faulty. An extension must never make any assumptions about its location or URL location. It should use Core API here to generate correct URLs.

I suggest adding the base path to some data attribute and fetching this inside JS when building the path to the icons.

from extension_builder.

liayn avatar liayn commented on June 15, 2024

@nicodh IMO the commit only fixed this for 8 but not for 7, so this has to be reopened

from extension_builder.

nicodh avatar nicodh commented on June 15, 2024

Yes you're right. Will backport it soon...

from extension_builder.

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.