contao / core-bundle

[READ-ONLY] Contao Core Bundle
GNU Lesser General Public License v3.0
123 stars 58 forks source link

Frontent preview #1638

Closed ChrMue closed 6 years ago

ChrMue commented 6 years ago

Is it possible to note the name/path of the current page in the header frame of the frontend preview? This would be helpfull if the page looks similar.

Toflar commented 6 years ago

That's not really feasible. It's an iframe and we would need to push to the parent window using some window.postMessage() implementation. However, the iframe doesn't know if it's shown in the preview or not. So that's a deadlock here imho.

ChrMue commented 6 years ago

yes of course, you are right. sorry. but it would be great. perhaps it will be possible to place this information anywhere.

Toflar commented 6 years ago

Actually it is possible. You're lucky we have dev meeting currently 😄 PR ready here: https://github.com/contao/core-bundle/pull/1640.

ChrMue commented 6 years ago

Thank you very much, Yanick!

leofeyer commented 6 years ago

Closing in favor of #1640.