GithubHelp home page GithubHelp logo

[FEATURE] Typo3 12 support about paste_reference HOT 18 OPEN

ifre avatar ifre commented on June 19, 2024 2
[FEATURE] Typo3 12 support

from paste_reference.

Comments (18)

spoonerWeb avatar spoonerWeb commented on June 19, 2024 1

What's the status here? You won't get a new feature to v12 into the core now. 🙂

from paste_reference.

Kephson avatar Kephson commented on June 19, 2024 1

Hey @spoonerWeb yes, you're right 🤣, I think it's now more than expected to do; pull request is welcome 😉

from paste_reference.

spoonerWeb avatar spoonerWeb commented on June 19, 2024 1

@Kephson Do you have someon who can handle the JS issues? I would sponsor it. Customer needs it urgently and I can't handle the JS.

from paste_reference.

Kephson avatar Kephson commented on June 19, 2024 1

currently it should work with the versions "dev-main", "dev-TYPO3_12" and "dev-development".
Just do a right click and select "paste reference after" to insert a reference after current elements.

from paste_reference.

Kephson avatar Kephson commented on June 19, 2024

Hi, yes it's planned and I was asked to add a feature request for TYPO3 core.
At the moment I have to check until I can provide an update.

from paste_reference.

cyrakoenig avatar cyrakoenig commented on June 19, 2024

What is the current situation here? Miss paste reference for my TYPO3 12 project ;)

from paste_reference.

Kephson avatar Kephson commented on June 19, 2024

Hi @cyrakoenig you're welcome to send a pull request, atm I didn't find any time to update it for TYPO3 12. 😮

from paste_reference.

spoonerWeb avatar spoonerWeb commented on June 19, 2024

Are there any new plans? 😬

from paste_reference.

Kephson avatar Kephson commented on June 19, 2024

Hi, there is a new branch for TYPO3 12.4 with preparations for v12, but the backend JavaScript is the hardest part and we need somebody to realize it with ES6.

from paste_reference.

Kephson avatar Kephson commented on June 19, 2024

there are a lot of tests needed, at the moment also the EXT: doesn't work with mulitlanguage pages.

from paste_reference.

Shotte avatar Shotte commented on June 19, 2024

@Kephson Any progress here?

I tried "dev-main" and "dev-TYPO3_12" branches by downloding as zip installing via backend into Typo3 v12.4.8. After following your advice by "doing a right click and select "paste reference after" to insert a reference after current elements" I get this error message:
"1: The record "Reference" couldn't be saved due to disallowed value(s)."

Any ideas?

from paste_reference.

Kephson avatar Kephson commented on June 19, 2024

Hi @Shotte I will try to follow your problems and test the integration.

from paste_reference.

christophlehmann avatar christophlehmann commented on June 19, 2024

Nice Extension! Works so far in v12, but only via Context Menu. Would be a nice TYPO3 v13 core feature.

from paste_reference.

Kephson avatar Kephson commented on June 19, 2024

Hi @christophlehmann yes, current version only via context menu, but it's 90% done in the development branch to have the "insert reference" button again; at the moment the database handling is missing to finish this functionality.
I'm working on it and then I will try to bring this to core in TYPO3 v13.

from paste_reference.

christophlehmann avatar christophlehmann commented on June 19, 2024

I have installed EXT:container.
In a two column container element i have a header element. When i use "Paste after as reference", then the new reference is created as an "unused element" and not in the container after the header element.
Bildschirmfoto 2024-01-29 um 14 21 24

Payload paste reference after
Bildschirmfoto 2024-01-29 um 14 35 30

Payload copy after
Bildschirmfoto 2024-01-29 um 14 35 20

from paste_reference.

saitho avatar saitho commented on June 19, 2024

Right now I get a JS error when loggin in as an editor, where top.pasteReferenceAllowed is empty, resulting in:

Uncaught SyntaxError: Unexpected token ';'

The issue lies in https://github.com/Kephson/paste_reference/blob/TYPO3_12/Classes/Hooks/PageLayoutController.php#L99, where the boolean return value from the PHP function is not processed into a boolean value for JavaScript. Casting to (int) may be sufficient, haven't checked the JS implementation yet.

from paste_reference.

Kephson avatar Kephson commented on June 19, 2024

You could try to use the version dev-TYPO3_12 form packagist to test the problem with the JS error. Did not had the time to check this in detail.
I'm still working on a version with all old features in the dev-development version.

from paste_reference.

ulrichmathes avatar ulrichmathes commented on June 19, 2024

See #37 for reference preview (blue background and Edit button).

from paste_reference.

Related Issues (19)

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.