<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div style="font-family: Arial; font-size: 13px;">
      <p style="margin: 0px; font-size: 13px; font-family: Arial;">After
        several hours of experiment, I finally figured it out. The
        source codes have been updated in the shared link, anyone who is
        interested can find the working code their.</p>
      <p style="margin: 0px; font-size: 13px; font-family: Arial;"><br>
      </p>
      <p style="margin: 0px; font-size: 13px; font-family: Arial;"> <br>
      </p>
    </div>
    <div style="font-family: Tahoma, sans-serif; font-size: 13px;
      padding-top: 5px; border-top: 1px solid #b5c4df;"><strong>From: </strong>Kevin
      Suo [<a class="moz-txt-link-freetext" href="mailto:suokunlong@126.com">mailto:suokunlong@126.com</a>]<br>
      <strong>Sent: </strong>Saturday, October 01, 2022 06:47 PM +08<br>
      <strong>To: </strong>libreoffice<br>
      <strong>Subject: </strong>Packaging a template set into an
      Extension</div>
    <br>
    <div type="cite"
      cite="mid:70eb4195-362e-ebb7-6b85-2abcfbd8e0fe@126.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p>Dear Community:</p>
      <p>I am trying to package several templates (i.e., a template set)
        into an extension, so that others can install this extension and
        have these templates installed all at once rather than
        copy-paste those ott files one by one manually into the
        <instdir>/user/templates folder.</p>
      <p>I have the following files in the folder:</p>
      <pre><font face="Liberation Mono">$ tree .
.
├── description.xml
├── META-INF
│   └── manifest.xml
├── mimetype
├── Paths.xcu
└── template
    ├── zh_CN_ott_normal_another.ott
    └── zh_CN_ott_normal.ott</font></pre>
      <p>And I zip these as chinese_template.oxt. After I install the
        oxt, the extension shows up in the extension manager, but the
        template files are not shown in the Template Manager dialog. I
        don't know where I did it wrong. I searched the internet and did
        not get an answer yet.</p>
      <p>Could someone please help me?</p>
      <p>I have uploaded the contents of the above files into my
        Nextcloud shared folder (with upload and editing permissions, so
        that you can edit them or add new files):<br>
        <a class="moz-txt-link-freetext"
          href="https://go.suokunlong.cn:88/nextcloud/index.php/s/KSWTqg7ZRWMSnnY"
          moz-do-not-send="true">https://go.suokunlong.cn:88/nextcloud/index.php/s/KSWTqg7ZRWMSnnY</a><br>
      </p>
      <p>Thank you in advance!</p>
      <p>Kevin Suo<br>
      </p>
    </div>
  </body>
</html>