Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template Files for WebOffice #10276

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Template Files for WebOffice #10276

wants to merge 1 commit into from

Conversation

micbar
Copy link
Contributor

@micbar micbar commented Oct 9, 2024

Description

Adds server-side template processing for WebOffice

API

app/list

We have two new properties.

template - boolean to indicate that this is a template mime type.
target_ext- string with the suggested file extension when creating a new empty file from that template.

    {
      "mime_type": "application/vnd.oasis.opendocument.spreadsheet-template",
      "app_providers": [
        {
          "address": "com.owncloud.api.collaboration.OnlyOffice",
          "name": "OnlyOffice",
          "description": "Open office documents with Collabora",
          "icon": "https://onlyoffice.owncloud.test/web-apps/apps/documenteditor/main/resources/img/favicon.ico",
          "secure_view": false,
          "template": true,
          "target_ext": "xlsx"
        }
      ]
    }

app/open

There is a new parameter template_id which takes a fileid. It should be used to specify the template which should be loaded during the open request.

Related Issue

Motivation and Context

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Signed-off-by: Michael Barz <mbarz@owncloud.com>
Copy link

update-docs bot commented Oct 9, 2024

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

Copy link

sonarcloud bot commented Oct 9, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

POC: Click on Template file -> Create Document (Web, Backend, mobile, desktop)
1 participant