Hi,
Everyone knows the manager preview doobie in the /manager side of things, right? My question is how do you do that? How do you load a site in a div like that and freely browse around the page in a page... I have read an number different solutions for doing this, but am curious as to which solution Modx uses. I’m thinking of loading product pages from a webstore into a div on the home page, giving users the opportunity to browse and buy in a mini shop, kind of thing. Or perhaps browse a category of products my client may be actively promoting at the time... etc,
Thanks for any pointers you guys may have on this.
-
MODX Staff
- 730 Posts
I strongly recommend considering the effect that pulling pages into an iframe may have on search indexing. If all that matters is the user experience, then it’s not a problem, but if you want decent indexing of that information by the bots, I don’t think pulling into an iframe is going to be too yummy for them.
iframes pretty unintuitive and not the ideal solution to any problem. But I think that how it’s used on the manager side is pretty much the only way it should be used: previewing output. Having a page inside a page will confuse the average user, remember that there may be people in your audience who have trouble understanding a single page!