for example, I want to include the results from a internal search engine where the seach is for the page title. I see some references to the page title as a session varable but I have no idea how to get it appended to the end of the URL so that the page renders the results in a iframe
Hi John,
Here is a user macro that should do what you need (according to your example):
## @noparams <ac:macro ac:name="iframe"> <ac:parameter ac:name="title">Wikipedia Page</ac:parameter> <ac:parameter ac:name="height">500</ac:parameter> <ac:parameter ac:name="width">100%</ac:parameter> <ac:parameter ac:name="src">http://en.wikipedia.org/wiki/$content.getTitle()</ac:parameter> <ac:rich-text-body> <p> </p> </ac:rich-text-body> </ac:macro>
You should just be able to mix and match as you need.
This did work and on the site I have to use, I have to get an admin to write it. so I sure wish it was more like parsing works in mediawiki. But this does the answer. Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
First thanks for relpying on this. The content would be in a confluence page here is an example XML fragment :
<ac:macro ac:name="iframe">
<ac:parameter ac:name="title">Wikipedia Page</ac:parameter>
<ac:parameter ac:name="height">500</ac:parameter>
<ac:parameter ac:name="width">1000</ac:parameter>
<ac:parameter ac:name="src">http://en.wikipedia.org/wiki/Helium</ac:parameter>
<ac:rich-text-body>
<p> </p>
</ac:rich-text-body>
</ac:macro>
but I want the page name to be used instead of Helium.
thanks again for thinking about this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Which Atlassian product are you working in here?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, so is this about inserting an iframe into a confluence page and pulling data from another system, or inserting confluence into an iframe in another app?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
First thanks for relpying on this. The content would be in a confluence page here is an example XML fragment :
<ac:macro ac:name="iframe">
<ac:parameter ac:name="title">Wikipedia Page</ac:parameter>
<ac:parameter ac:name="height">500</ac:parameter>
<ac:parameter ac:name="width">1000</ac:parameter>
<ac:parameter ac:name="src">http://en.wikipedia.org/wiki/Helium</ac:parameter>
<ac:rich-text-body>
<p> </p>
</ac:rich-text-body>
</ac:macro>
but I want the currnent page name value to be used instead of hardcoded word : Helium.
thanks again for thinking about this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline 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.