Export to Word - macro

Comments

4 comments

  • Avatar
    Nils Bier

    Hi Daniel,

    Thanks for reaching out.
    I'm not sure if I completely understand your question here. Would it be possible to simply adapt the export scheme id as described in our docs: https://help.k15t.com/scroll-office/how-can-i-insert-an-export-button-to-a-page-83331249.html to match the one from the other space?

    Or are you asking to get a list of all export scheme IDs for your whole system (and the corresponding space key(s))?

    Best,
    Nils

  • Avatar
    Daniel Vlad

    Hi Nils,

     

    Excuse me, my English is just too bad.

    Thanks for the link. We used this to create the macro.

    I try again:
    We have different spaces with different ScrollOffice templates / schemas, other logos, headers / footers, etc.
    How can I use the macro in other spaces?
    I want to configure it flexible, so that is alway using the ScrollOffice template / schema of the currently used space and not the specified Export Scheme ID in the macro.

    As it is now, I must write for each space a usermacro, with the corresponding Export Scheme ID.

    Can an "if then else query" work if the corresponding space ID and the Export Scheme ID are stored in the macro?

     

    "A list of all export scheme IDs for your whole system (and the corresponding space key(s))" - is also helpfull

     

    Regards

    Daniel

  • Avatar
    Daniel Vlad

    Hi Nils, the macro works now in several spaces and with different export ID.

    The programming code definitely goes better, we are at first glad that it works.
    I have one more question.
    How can I get the export mask closed automatically after the Worddocument was created?

    ..........................................

    ## @noparams

    #if($space.getKey()=="OHN")
    <div style="background-color:#01A9DB;width: 350px;height: 37px;"><ac:macro ac:name="scroll-ignore"><ac:rich-text-body>
    <p><a class="scroll-office-launcher" data-export-scheme-id="OHN-9646AFE8015F2ECC7B328FEC6C1BF81E" href="#"
    <b><center><font color="#FFFFFF"><font size=5><span style="font-family: 'Wingdings 2'">&#54; </span>
    </font>Word-Dokument erzeugen</a></font></center></p></b></ac:rich-text-body>
    </ac:macro></div>
    #elseif($space.getKey()=="OZBFQM")
    <div style="background-color:#01A9DB;width: 350px;height: 37px;"><ac:macro ac:name="scroll-ignore"><ac:rich-text-body>
    <p><a class="scroll-office-launcher" data-export-scheme-id="OZBFQM-9646AFE7015800470841DD077D094F67" href="#"
    <b><center><font color="#FFFFFF"><font size=5><span style="font-family: 'Wingdings 2'">&#54; </span>
    </font>Word-Dokument erzeugen</a></font></center></p></b></ac:rich-text-body>
    </ac:macro></div>
    #else
    <div style="background-color:#01A9DB;width: 350px;height: 37px;"><ac:macro ac:name="scroll-ignore"><ac:rich-text-body>
    <p><a class="scroll-office-launcher" data-export-scheme-id="KBRQM-9646AFE7015800470708EFA150D8AD25" href="#"
    <b><center><font color="#FFFFFF"><font size=5><span style="font-family: 'Wingdings 2'">&#54; </span>
    </font>Word-Dokument erzeugen</a></font></center></p></b></ac:rich-text-body>
    </ac:macro></div>
    #end

    ....................

     

    Regards

    Daniel

  • Avatar
    Daniel Vlad

    Hello,

     


    How can I hide the Export Schemes screen after outputing the confluencecontent in Word?

    I find this suggestion code, adjusted by myself, I'm not sure if it works. But now I´m asking me how to bring this code with the other together?


    ".scroll-office-export-dialog.aui-dialog .dialog-button-panel a {
    display:close;
    }"

    Perhaps there are other, simple solutions!

     

    Best Regards

    Daniel

Please sign in to leave a comment.

Powered by Zendesk