+

Search Tips   |   Advanced Search

Inject custom aggregators

We can apply different approaches to Active Site Analytics using a theme extension point in plugin.xml...

The extension loop picks up the custom implementation of the extension point, and the output is added to the markup of the portal page.

To have the output added to the head of the HTML page, implement the following extension point:

Alternatively, use the following JSP code to iterate over the page metadata and add the aggregator JavaScript include statement to the page:

<portal-logic:pageMetaData varname="pageMetaData">
   <portal-logic:urlFindInTheme file='js/${pageMetaData["asa_aggregator"]}' id="asa_aggregator_file"/>
   <c:if test="${asa_aggregator_file != null}">
      <script type="text/javascript" src='<%=asa_aggregator_file%>'></script>
   </c:if>
</portal-logic:pageMetaData>

The result of urlFindInTheme is cached. To clear the cache, restart the portal. Redeploying the theme is not sufficient to trigger a reevaluation of urlFindInTheme.


Parent Instrument a theme for Active Site Analytics


Related information


Tags used by the portal theme JSPs