Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

There are many macros available that allow for external content to be displayed in Confluence. For instance, macros from SQL, HTML, and XL Excel Plugin for Confluence. Even though the content appears on a Confluence page, the data will not be included in the Confluence search index since it is not included in the wiki markup of the page. One way to include the content so that it is searchable in Conflunece is to use the cache macro. How to index external content using the RUN macro is an alternative way to do this. The advantage of using the cache macro technique is that the search result returned will be the actual page the content is on.

...

Examples

SQL queries

No Format

{cache:index=true}
The results from the SQL query will be indexed for search.
{sql-query:dataSource=ReportDS}
select * from report
{sql}
{cache}

Web pages

Using the HTML.

No Format

{cache:index=true}
The page pointed to by the url will be indexed for search.
{html:script=#http://www.atlassian.com/about/}
{html}
{cache}

...