x x x
Only portrait mode is currently supported - please rotate your device.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 22

...

Microblog Timeline
topic2
sourcetopic

HTML
<div id="output-markup"> </div>
<script>
function renderAndInsertMarkup(markup, containingElement) {
 var dataObj = {};
 dataObj.representation = "storage";
 dataObj.content = {};
 dataObj.content.id = AJS.params.pageId;
 dataObj.value = markup;
 
 jQuery.ajax({dataType: 'json',
  contentType: 'application/json',
  type: 'POST',
  url: '/rest/api/contentbody/convert/view',
  data: JSON.stringify(dataObj),
  success: function(response) {
   jQuery(containingElement).append(response.value);
  }
 });
}
renderAndInsertMarkup(`  <ac:structured-macro ac:macro-id="ad2a6246-f132-447c-9d41-134a863d6d38" ac:name="globaltimeline" ac:schema-version="1">
    <ac:parameter ac:name="topic">2</ac:parameter>
    <ac:parameter ac:name="source">topic</ac:parameter>
  </ac:structured-macro>`, "#output-markup");
</script>
<div id="output-markup"> </div>