Giter Site home page Giter Site logo

authorized-preview's People

Contributors

bmack avatar davidsteeb avatar ervaude avatar georgringer avatar h3nn3s avatar o-ba avatar ochorocho avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

authorized-preview's Issues

PHP Warnings in Middleware, TSFE not set

I get a lot of warnings in the log like this:

Core: Error handler (BE): PHP Warning: Attempt to read property "id" on null in /.../ext/authorized_preview/Classes/Http/Middleware/Preview.php line 114
Core: Error handler (BE): PHP Warning: Undefined global variable $TSFE in /.../typo3conf/ext/authorized_preview/Classes/Http/Middleware/Preview.php line 114

Maybe this is caused by some subrequest, e.g. solr? ๐Ÿคท I guess it should be safe to to add something like this?

if (!isset($GLOBALS['TSFE']) || !$GLOBALS['TSFE'] instanceof \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController) {
        return $handler->handle($request);
    }

TYPO3: 11.5.27
authorized_preview: 2.1.0 and 3.0.0

[Feature Request] add functionality for preview urls on activated languages as well

Hi,

your extension was recommended to me by @bmack and maybe your extension could be extended...

We have the following use case:
An editor creates a new page. This page is hidden at first because the editor needs an approval from another person before the page can go live. Therefor the editor has to send the preview url to this person. Right now that is possible only with workspaces. In Workspaces you have the option to generate a preview url. So the editor created a new page, switches to the Workspace and copies the preview url, sends the url to the other person...

It would be good if workspaces are not needed in order to copy a preview url for people who are not logged-in into TYPO3 (or doesn't have a TYPO3 account).

Maybe this feature could be added, so that the preview url not only works for pages with deactivated languages but also for pages with activated languages?

Thank you very much.

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.