Hi,
it is possible to insert a macro into a page with the confluence command line interface.
(e.g. confluence --action modifyPage --id "216597104" --content "<ac:macro ac:name=""unmigrated-inline-wiki-markup""><ac:plain-text-body><![CDATA[{wiki:param1=xxxxx}bodyText{wiki}]]></ac:plain-text-body></ac:macro>" --noConvert )
But: --content or --content2 puts the content at the end or at the beginning of a page, but I want it to be following another macro, that is somewhere in the midst of the page.
I ve already tried using findReplace, which drives me mad with the special characters, and it doesn t work yet.
Any other ideas?
Write a small script that does the following:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah it's what i'm trying to do, but i need to add at the end some rows (around 10) corresponding to storage format of 2 different macro (checklist and pageinclude)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, i figured out, i was missing the "--noConvert" parameter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bob Swift {Appfire} problem with quote annidation...
--action runFromContentList --cql "type=page and label=mylabel" --common ' --action modifyPage --id "@pageId@" --content2 "<p> <ac:structured-macro ac:name=~include~> <ac:parameter ac:name=~~> <ac:link> <ri:page ri:content-title=~_ page to be included~ ri:space-key=~KB~/> </ac:link> </ac:parameter> </ac:structured-macro></p>" --noConvert --minor --special " # ~" '
without the runfromcontentlist it works, but when i put it together it doesn't
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, but only if there is no manual intervention required - that means being able to do it generically with *modifyPage*.
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.