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?
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...
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 :).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.