AEM Bookmarklets for JMP.com and discoverysummit.jmp
To use these bookmarks:
Firefox: Right-click on the link associated with each one and choose "Bookmark This Link".
Chrome: Right-click and "Copy Link Address", in your menu, go to "Bookmarks --> Bookmark Manager", right click on your "AEM" folder (create one if you haven't yet) and select "Add page...", then add the name (e.g. Preview Mode) and paste in the address link you copied.
It is suggested that you create a folder within your bookmarks to store all of these in one place for easy access later on.
If you would like all of these pre-created for you in an AEM folder, please right click and save here. After downloading, import them into your browser via your bookmark manager.
Preview Mode
Use this bookmarklet to enter preview mode. Preview mode allows you to view the page and navigate the site from within the cqauthor environment. You can also enter preview mode, copy the URL and send it to a non-AEM user to preview.
If you are logged into AEM and enter preview mode, you may exit by clicking the blue X in the upper left corner of the page. If you hit the back button on your browser instead, you will return to edit view, but will still be in preview mode until you click the X Exit Preview link.
- Right click on the link below and select Bookmark This Link to add the bookmarklet
- Open your AEM page in author mode and then click on the bookmarklet
- Copy your browser's URL to send to non-AEM users, or browse the site
- Click the Exit Preview link (X) in the upper left corner of the page to ext and return to authoring. You will enter authoring on whichever page you exit from
javascript:u=((document.location.href).split('?')[0]);%20document.location.href=(u.replace(/\/cf#\//,%20'/'))+'?wcmmode=disabled&previewpath=true';
View Live
Use this bookmarklet to switch from an AEM Author page to its live (www.jmp.com or discoverysummit.jmp) equivalent.
For JMP.com:
javascript: a = (document.location.href).split('content/jmp')[1]; b = (a.substr(1)).split('/')[0]; c = a.substr((a.substr(1)).indexOf('/') + 1); if ((document.location.href).indexOf(%22jmpbp/%22) >= 0) { a = (document.location.href).split('jmpbp/')[1]; b = a.split('/')[0]; c = a.substr(a.indexOf('/') + 1); } if (b == 'en') { document.location.href = 'http://www.jmp.com/en_us/' + c; } else if (b == 'en_eu') { document.location.href = 'http://www.jmp.com/en_gb/' + c; } else if (b == 'de') { document.location.href = 'http://www.jmp.com/de_de/' + c; } else if (b == 'fr') { document.location.href = 'http://www.jmp.com/fr_fr/' + c; } else if (b == 'it') { document.location.href = 'http://www.jmp.com/it_it/' + c; } else if (b == 'zh_tw') { document.location.href = 'http://www.jmp.com/zh_tw' + c; } else if (b == 'zh_CN') { document.location.href = 'http://www.jmp.com/zh_cn/' + c; } else if (b == 'ja') { document.location.href = 'http://www.jmp.com/ja_jp/' + c; } else if (b == 'ko') { document.location.href = 'http://www.jmp.com/ko_kr/' + c; } else if (b == 'en_ap') { document.location.href = 'http://www.jmp.com/en_au/' + c; } else if (b == 'es') { document.location.href = 'http://www.jmp.com/es_es/' + c; } else if (b == 'pt_br') { document.location.href = 'http://www.jmp.com/pt_br/' + c; } else { document.location.href = 'http://www.jmp.com/' + b + c; }
For discoverysummit.jmp:
javascript:a=((document.location.href).split('?')[0]); b=a.split('content/jmp-discovery-summit')[1]; document.location.href='http://www.discoverysummit.jmp'+b;
View in Author
Use this bookmarklet to switch from a live page (www.jmp.com or discoverysummit.jmp) to its AEM Author equivalent.
View in Author (Blue Print - e.g. "jmpbp/en"):
javascript: newUi = 'editor.html'; a = (document.location.href).split('.com/')[1]; b = a.substring(6, ); c = a.split('_')[0]; if (((document.location.href).indexOf('en_gb') >= 0) || ((document.location.href).indexOf('en_be') >= 0) || ((document.location.href).indexOf('en_dk') >= 0) || ((document.location.href).indexOf('en_nl') >= 0) || ((document.location.href).indexOf('en_ch') >= 0)) { document.location.href = 'http://aemauthor.unx.sas.com/' + newUi + '/content/jmpbp/' + c + '_eu/' + b; } else if (((document.location.href).indexOf('en_') >= 0) && !((document.location.href).indexOf('en_us') >= 0) && !((document.location.href).indexOf('en_ca') >= 0)) { document.location.href = 'http://aemauthor.unx.sas.com/' + newUi + '/content/jmpbp/' + c + '_ap/' + b; } else if ((document.location.href).indexOf('zh_cn') >= 0) { document.location.href = 'http://aemauthor.unx.sas.com/' + newUi + '/content/jmpbp/zh_CN/' + b; } else if ((document.location.href).indexOf('zh_tw') >= 0) { document.location.href = 'http://aemauthor.unx.sas.com/' + newUi + '/content/jmpbp/zh_tw/' + b; } else if ((document.location.href).indexOf('pt_br') >= 0) { document.location.href = 'http://aemauthor.unx.sas.com/' + newUi + '/content/jmpbp/pt_br/' + b; } else { document.location.href = 'http://aemauthor.unx.sas.com/' + newUi + '/content/jmpbp/' + c + '/' + b; }
View in Author (Live Copy - e.g. "jmp/en_us") - Used mainly for emails:
javascript: a = ((document.location.href).split('.com')[1]); b = a.split('.html')[0]; document.location.href = 'http://aemauthor.unx.sas.com/editor.html/content/jmp' + b + '.html';
For discoverysummit.jmp:
javascript:a=((document.location.href).split('.jmp')[1]); b=a.split('.html')[0];document.location.href='http://aemauthor.unx.sas.com/editor.html/content/jmp-discovery-summit'+b+'.html';
View in Site Admin
Use this bookmarklet to view an AEM page in the Site Admin (file directory of AEM).
javascript: (function() { if (document.location.href.indexOf(%22aemauthor%22) >= 0) { x = 'jmp'; if (document.location.href.indexOf(%22jmpbp%22) >= 0) { x = 'jmpbp'; } a = ((document.location.href).split('content/' + x)[1]); b = a.split('.html')[0]; c = b.split(%22/%22); d = b.replace(c[c.length - 1], %22%22); document.location.href = 'http://aemauthor.unx.sas.com/sites.html/content/' + x + d; } else { a = ((document.location.href).split('.com')[1]); b = a.split('.html')[0]; c = b.split(%22/%22); d = b.replace(c[c.length - 1], %22%22); document.location.href = 'http://aemauthor.unx.sas.com/sites.html/content/jmp' + d; } })();
Country Switch (extremely useful)
Please download and import these bookmarks to switch between different countries on the LIVE site or in AEM.
For JMP.com: Get from full AEM bookmark download at the beginning of document.
For discoverysummit.jmp: Get from full AEM bookmark download at the beginning of document.
Thanks/Watch page
Use this bookmarklet to skip a form and go to the "thanks" or "watch" page, based on whether the asset is a white paper or webinar
javascript: (function() { a = ''; if (document.location.href.indexOf('editor.html') >= 0) { a = (document.location.href).split('editor.html'); a = a[0] + 'editor.html' + a[1].split('.html')[0]; } else { a = (document.location.href).split('.html')[0]; } if (a.indexOf('thanks') >= 0) { c = (a.split('/thanks')[0]); document.location.href = c + '.html'; } else if (a.indexOf('watch') >= 0) { c = (a.split('/watch')[0]); document.location.href = c + '.html'; } else if (a.indexOf('ondemand') >= 0) { document.location.href = a + '/watch.html'; } else { document.location.href = a + '/thanks.html'; } })();
Reply Email page
Use this bookmarklet to move FROM the "thanks" or "watch" page to the reply email page IF there is one (otherwise you will recieve a Page Not Found).
javascript: (function() { a = ((document.location.href).split('thanks.html')[0]); document.location.href = a + 'reply-email.html';})();