Timeline for How to tell if a request is coming from Experience Manager
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 10, 2014 at 17:45 | comment | added | Nuno Linhares♦ | I will add it to the backlog... | |
Apr 10, 2014 at 14:26 | comment | added | Will Price | I have submitted this as an idea on ideas.sdltridion.com | |
Apr 10, 2014 at 13:13 | comment | added | Bart Koopman |
Would be useful if SDL would set an X-SDL-Experience-Manager header in the request when they load the Page in XPM. @WillPrice I have modified the User Agent strings for the Device Preview (adding XpmDevice/[device name] to it) so that I could defer from there it was the Device Preview from XPM, but you don't have that option for the normal Desktop View.
|
|
Apr 10, 2014 at 12:56 | comment | added | Peter Kjaer | I think you're gonna have a bad time with that. AFAIK there is no reliable way to detect that (would apparently make a good ER though). Hence why I suggest that you do it during publishing instead. Either that or always output it on staging, but not on live - perhaps controlled by the URL or configuration settings. | |
Apr 10, 2014 at 12:26 | comment | added | Will Price | I am rendering the markup CD-side, but want to output the markup on staging only if the request is coming from XPM | |
Apr 10, 2014 at 12:23 | history | answered | Peter Kjaer | CC BY-SA 3.0 |