Acquia Optimize

iCreate

This page provides the requirements for Optimize CMS integration to work with iCreate.

Requirements

Page Requirements

  • Javascript element that contains the following lines:
var icreateBaseUrl = 'https://icreate.domain.tld'
// And afterwards
redirectUrl = icreateBaseUrl + 'some/other/path/page.srv?pageId=123',
<script type="text/javascript">
if (typeof String.prototype.endsWith !== 'function') {
    String.prototype.endsWith = function(suffix) {
        return this.indexOf(suffix, this.length - suffix.length) !== -1;
    };
}
$(document).ready(function() {
    var redirectUrl;
    if (location.href.indexOf('/edit_') > -1) {
        redirectUrl = location.href.replace('/edit_', '/');
    } else {
        var icreateBaseUrl = 'https://icreate2.stage.domain.tld/';
        if (!icreateBaseUrl.endsWith('/')) {
            icreateBaseUrl += '/';
        }
        redirectUrl = icreateBaseUrl + 'icreate/modules/pageeditor3/page.srv?pageId=64158';
    }
    $(document).icrtShortcut({
        shortcutKey: 'f9_f9',
        redirectUrl: redirectUrl
    });
});
</script>

CMS Settings

  • None

Optional

CMS Settings

  • None

Generated URL

"#{base_url}/#{redirect_url}"
http(s)://icreate.domain.tld/some/other/path/page.srv?pageId=#{id}

Did not find what you were looking for?

If this content did not answer your questions, try searching or contacting our support team for further assistance.

Acquia Help

Filter by product:

Common questions