NoAim Macro Example

The NoAim macro simply skips certain parts of your SXML/(X)HTML code when rendering in the AIM channel.

Outside the AIM channel, it is completely transparent (apart from adding extra levels in SXML hierarchy)

In the example shown here (part of a System Translation), we don't want to execute doe that directly uses contexually defined item data (not part of theb translation itself) during AIM scanning, so we skip those parts.

 

Smartsite SXML CopyCode image Copy Code
<se:noaim>
    <title>{metatitle()}</title>
    <meta name="description" content="{string.removetags(itemdata.field(description))}" />
    <meta name="keywords" content="{datatable.simpleformat(itemdata.field(keywords),'{name}',', ', default='Smartsite, iXperion, Content Management')}" />
    <meta name="author" content="{itemdata.field(author)}" />
    <meta name="robots" content="all" />
</se:noaim>
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" /> 
<link rel="alternate" type="application/rss+xml" title="RSS" href="/rss" />
<se:placeholder.cssinclude />
<se:placeholder.css />
<se:placeholder.javascriptinclude />
<se:placeholder.javascriptonload />
<se:placeholder.javascript />
<se:hidden>
    {response.writeprocessingtimecookie()}
    {placeholder.addjavascriptinclude(debug.getlocation('/assets/behavior/classbehavior.js'))}
    {placeholder.addjavascriptinclude('/assets/scripts/dom.js')}
    {placeholder.addjavascriptinclude(JS_MAIN)}
    {placeholder.addjavascriptinclude(GLOSSARYTERMS)}
    {placeholder.addcssinclude('/assets/css/layout.css')}
    {placeholder.addcssinclude('/assets/css/style.css')}
    {placeholder.addcssinclude('/assets/css/coolform.css')}
</se:hidden>