Even more fun with Experience Manager

After writing my post about having fun with experience manager last year, I think it is time for a small update. This time I’ll keep it short, but we will have even more fun with XPM!

I explained the usage of a jQuery plugin script that could detect if you were inside XPM, so that your additional elements would only be shown in there. At the time I was convinced that the code I used was the best solution. But now I have an update, a bit more technically advanced, but still not perfect I have to add. Instead of just checking if the page is loaded in an iframe (which is what I used to do, assuming that means you are inside XPM), I now check for the availability of Tridion objects. This can only be done after the page is finished loading and the XPM bootstrap script has executed (so I wait 5 seconds after page load before checking). So now you can replace the jQuery plugin script from my previous post with this one:

Also good to mention is that with the release of SDL Tridion 2013 SP1 we now have new functions for DWT Templates to mark fields. These make it possible to have more control over what you want to edit. For instance editing a background image, which is impossible to accomplish using @@RenderComponentField("image")@@. But using the following in your DWT TBB, it will work:

This entry was posted in Development and templating, Helpful Tridion tips and tagged , , by Bart. Bookmark the permalink.

About Bart

Working as a Technical Product Manager, Bart is the evangelist of all SDL Web products and the Digital Experience Accelerator in particular. Bart has worked for SDL since 2003 as a technical support engineer, consultant and trainer, supporting both partners and customers with their implementations. Bart was one of the original developers of the first version of DXA, and currenlty determines the future of it.

One thought on “Even more fun with Experience Manager

  1. Pingback: Having fun with Experience Manager, Page Regions and Widgets | SDL Tridion Developer

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>