So we have a number of experience fragments our authors have created and we want to export them as plain HTML. According to the documentation, you simply use the .plain. selector in the URL and poof it should work. This doesn't seem to work so questions:
1. Are you supposed to be hitting the XF directly? If so, how do you construct a URL to hit the XF directly?
2. Are you supposed to add the XF to a page and then use the selector? We tried this, but .plain. just returns the same page.
3. Are there dispatcher changes needed to do this?
This does feel like a fundamental gap in understanding how this works from our end, but the docs are very light here and it appears like it should "just work". Any help is appreciated.
The plain selector will change the URL to the publish one. However, 'generally' the XFs are not to be accessed to the publisher as they're used to export to third party like Target directly from Author instance.
If you need to check html which is being sent to third party like Target, please use 'nocloudconfigs' selector.
By default, when you construct a Target HTML Offer, a request is sent to a custom Sling selector in AEM. This selector is called .nocloudconfigs.html . As its name implies, it creates a plain HTML rendering of an Experience Fragment, but does not include cloud configurations (which would be superfluous information).