Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-39118

{viewfile} macro is no longer available from the list of available macros and existing viewfile macro can't be edited/updated

    XMLWordPrintable

Details

    Description

      NOTE: This bug report is for Confluence Cloud. Using Confluence Server? See the corresponding bug report.

      {viewfile} macro is no longer available from the list of available macros and existing viewfile macro can't be edited/updated.

      Also, for existing {viewfile}

      macro, in an Edit mode, when you choose the attachment it says: "(Not found)" and do not show the list of attachments from the specific page. See screen shot:

      Workaround:

      Download and install Confluence Source Editor plugin through UPM. Next, go to the page which has the

      {viewfile} macro, edit the page, on the editor you'll see this [<>] button in between 'binocular' button and the [?] button, click on it and a window will pop-up and you'll get something like this:
      <p>
        <ac:link>
          <ri:attachment ri:filename="Book1.xlsx"/>
        </ac:link>
      </p>
      <p>
        <ac:macro ac:name="viewfile">
          <ac:default-parameter>Book1.xlsx</ac:default-parameter>
        </ac:macro>
      </p>
      

      You may edit this specific line:
      <ac:macro ac:name="viewfile">
      

      to
      <ac:macro ac:name="viewxls">
      

      and then click 'Apply'. This should transform the {viewfile}

      macro to

      {viewxls}. However, I'm afraid this still has to be done manually on each affected {viewfile} macro.

      OR you can also insert {viewxls}

      macro into Confluence page using Insert > Wiki Markup. The file will be displayed fine in Confluence page but still can't be successfully edited/updated.

      {viewxls}

      ,

      {viewdoc}

      ,

      {viewppt}

      macros are working as expected.

      Attachments

        1. screen_01.png
          21 kB
          Hanis Suhailah

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hsuhailah Hanis Suhailah (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: