Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Is there a way to render indirect sources as confluence pages?

Simon Hardy-Francis September 20, 2011

I'm dreaming about something like this embedded on a page: {render:http://example.com/myurl/somefile.txt}

The idea is that I have some source file accessible via http which contains confluence markup. It might be in github and part of some source code, or it might be a dynamically generated report from some non-confluence automation. Either way I'd like confluence to read the url and use the markup read to replace the {render:http://example.com/myurl/somefile.txt} macro.

Does such a macro already exist?

2 answers

0 votes
David Peterson
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 20, 2011

I'm not aware of anything either, although it would be a handy plugin to integrate with the Reporting plugin. You could write one which had a Supplier that would load the provided URL, and load it as text. Eg:

{report-info:url:"http://blah/blah.txt" > resource:as text|render=true}

Wouldn't be that difficult to write, although it could be considered a bit of a security risk...

Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 20, 2011

Security is handled for csv and others using Macro Security Plugin, so that can be covered. It would be pretty simple to add if only there was some spare time :).

0 votes
Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 20, 2011

No, not that I am aware of. But there are similar examples, for instance the CSV Macro can get CSV data from a url. You can also use the Confluence Command Line Interface to copy external content into Confluence pages.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events