<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Add custom export templates: where to create the folder "export" and how to modify export.en.xlf?]]></title><description><![CDATA[<p dir="auto">I am trying to add custom templates to our Kimai installation.</p>
<p dir="auto">I tried to follow the <a href="https://www.kimai.org/documentation/export.html" target="_blank" rel="noopener noreferrer nofollow ugc">Kimai documentation</a> and adapt it to the Cloudron installation.</p>
<ul>
<li>
<p dir="auto">I copied, renamed and adapted one of the <a href="https://github.com/kimai/kimai/tree/main/templates/invoice/renderer" target="_blank" rel="noopener noreferrer nofollow ugc">default templates</a>. <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/2714.png?v=a3d9da63442" class="not-responsive emoji emoji-android emoji--heavy_check_mark" style="height:23px;width:auto;vertical-align:middle" title=":heavy_check_mark:" alt="✔" /></p>
</li>
<li>
<p dir="auto">I created a folder in "data" called "export".<br />
Since in Cloudron <a href="https://docs.cloudron.io/apps/kimai/" target="_blank" rel="noopener noreferrer nofollow ugc">plugins are installed in /data/plugins</a> rather than in <a href="https://www.kimai.org/documentation/plugin-management.html" target="_blank" rel="noopener noreferrer nofollow ugc">var/plugins</a>, I thought it might work. <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/2753.png?v=a3d9da63442" class="not-responsive emoji emoji-android emoji--question" style="height:23px;width:auto;vertical-align:middle" title=":question:" alt="❓" /></p>
</li>
<li>
<p dir="auto">Similarly, I created a folder "translations" and added a copy of export.en.xlf that included my custom template. <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/2753.png?v=a3d9da63442" class="not-responsive emoji emoji-android emoji--question" style="height:23px;width:auto;vertical-align:middle" title=":question:" alt="❓" /></p>
</li>
<li>
<p dir="auto">I reloaded the kimai cache and restarted the app. <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/2714.png?v=a3d9da63442" class="not-responsive emoji emoji-android emoji--heavy_check_mark" style="height:23px;width:auto;vertical-align:middle" title=":heavy_check_mark:" alt="✔" /></p>
</li>
</ul>
<pre><code>bin/console kimai:reload --env=prod
</code></pre>
<p dir="auto">Unfortunately, my template is not shown in the export window.</p>
<p dir="auto">I suppose that adding a folder "export" to "data" does not work. With regard to invoice templates, <a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> <a href="https://forum.cloudron.io/topic/6070/templates/5">suggested that you can perhaps add a default directory for templates</a>.</p>
<p dir="auto">Maybe configuring the directory data/export through the config key kimai.export.documents in local.yaml could do the trick as suggested in the Kimai documentation, but I don't know how to do that.</p>
<p dir="auto">And I am not sure how to modify the export.en.xlf either.</p>
<p dir="auto">Any help would be much appreciated.</p>
]]></description><link>https://forum.cloudron.io/topic/12943/add-custom-export-templates-where-to-create-the-folder-export-and-how-to-modify-export-en-xlf</link><generator>RSS for Node</generator><lastBuildDate>Wed, 12 Aug 2026 02:05:19 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/12943.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 14 Dec 2024 14:40:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Add custom export templates: where to create the folder "export" and how to modify export.en.xlf? on Tue, 17 Dec 2024 19:53:59 GMT]]></title><description><![CDATA[<p dir="auto">And mine are still there. <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f44f.png?v=a3d9da63442" class="not-responsive emoji emoji-android emoji--clap" style="height:23px;width:auto;vertical-align:middle" title=":clap:" alt="👏" /></p>
]]></description><link>https://forum.cloudron.io/post/98370</link><guid isPermaLink="true">https://forum.cloudron.io/post/98370</guid><dc:creator><![CDATA[marylou]]></dc:creator><pubDate>Tue, 17 Dec 2024 19:53:59 GMT</pubDate></item><item><title><![CDATA[Reply to Add custom export templates: where to create the folder "export" and how to modify export.en.xlf? on Tue, 17 Dec 2024 16:48:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> thanks, appreciate it! already tested, templates are back <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=a3d9da63442" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://forum.cloudron.io/post/98365</link><guid isPermaLink="true">https://forum.cloudron.io/post/98365</guid><dc:creator><![CDATA[msbt]]></dc:creator><pubDate>Tue, 17 Dec 2024 16:48:31 GMT</pubDate></item><item><title><![CDATA[Reply to Add custom export templates: where to create the folder "export" and how to modify export.en.xlf? on Tue, 17 Dec 2024 16:42:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/msbt" aria-label="Profile: msbt">@<bdi>msbt</bdi></a> published</p>
]]></description><link>https://forum.cloudron.io/post/98363</link><guid isPermaLink="true">https://forum.cloudron.io/post/98363</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Tue, 17 Dec 2024 16:42:12 GMT</pubDate></item><item><title><![CDATA[Reply to Add custom export templates: where to create the folder "export" and how to modify export.en.xlf? on Tue, 17 Dec 2024 16:28:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/msbt" aria-label="Profile: msbt">@<bdi>msbt</bdi></a> oh, i didn't realize that path was in use. will put it back</p>
]]></description><link>https://forum.cloudron.io/post/98360</link><guid isPermaLink="true">https://forum.cloudron.io/post/98360</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Tue, 17 Dec 2024 16:28:48 GMT</pubDate></item><item><title><![CDATA[Reply to Add custom export templates: where to create the folder "export" and how to modify export.en.xlf? on Tue, 17 Dec 2024 15:48:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> I'm afraid <a href="https://git.cloudron.io/apps/kimai-app/-/commit/8b4835159abdc2c5113a350bc18d66d1cca4d9d5" target="_blank" rel="noopener noreferrer nofollow ugc">this update</a> removed the custom invoices templates, I can't create new invoices because the templates are now "missing". Could you symlink that path again? <code>/app/data/invoices</code> was used for templates, <code>/app/data/data/invoices/</code> for exported pdfs (<a href="https://www.kimai.org/documentation/invoices.html#create-your-own-invoice-document" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.kimai.org/documentation/invoices.html#create-your-own-invoice-document</a> for reference)</p>
]]></description><link>https://forum.cloudron.io/post/98356</link><guid isPermaLink="true">https://forum.cloudron.io/post/98356</guid><dc:creator><![CDATA[msbt]]></dc:creator><pubDate>Tue, 17 Dec 2024 15:48:44 GMT</pubDate></item><item><title><![CDATA[Reply to Add custom export templates: where to create the folder "export" and how to modify export.en.xlf? on Mon, 16 Dec 2024 19:15:23 GMT]]></title><description><![CDATA[<p dir="auto">YEAH!!!!!!!</p>
<p dir="auto">Thank you SO SO SO much, <a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a>.</p>
<p dir="auto">Fun fact: the order of the menu buttons changed (for lack of a better word, it is also the word used in the kimai documentation) from CSV / Excel / Print / PDF to CSV / Excel / PDF / Print.</p>
<p dir="auto">But there is now a fifth template in the PDF dropdown and it has the file name as a name.<br />
Again, thank you so much!!!</p>
]]></description><link>https://forum.cloudron.io/post/98312</link><guid isPermaLink="true">https://forum.cloudron.io/post/98312</guid><dc:creator><![CDATA[marylou]]></dc:creator><pubDate>Mon, 16 Dec 2024 19:15:23 GMT</pubDate></item><item><title><![CDATA[Reply to Add custom export templates: where to create the folder "export" and how to modify export.en.xlf? on Mon, 16 Dec 2024 19:11:31 GMT]]></title><description><![CDATA[<p dir="auto">Updating now.<br />
Just to be sure: I delete the path I added to local.yaml, correct?</p>
]]></description><link>https://forum.cloudron.io/post/98311</link><guid isPermaLink="true">https://forum.cloudron.io/post/98311</guid><dc:creator><![CDATA[marylou]]></dc:creator><pubDate>Mon, 16 Dec 2024 19:11:31 GMT</pubDate></item><item><title><![CDATA[Reply to Add custom export templates: where to create the folder "export" and how to modify export.en.xlf? on Mon, 16 Dec 2024 19:08:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/marylou" aria-label="Profile: marylou">@<bdi>marylou</bdi></a> maybe <a href="https://git.cloudron.io/apps/kimai-app/-/merge_requests/6" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/apps/kimai-app/-/merge_requests/6</a> works... I have published a new package that uses <code>/app/data/export</code> . Can you try?</p>
]]></description><link>https://forum.cloudron.io/post/98307</link><guid isPermaLink="true">https://forum.cloudron.io/post/98307</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 16 Dec 2024 19:08:45 GMT</pubDate></item><item><title><![CDATA[Reply to Add custom export templates: where to create the folder "export" and how to modify export.en.xlf? on Mon, 16 Dec 2024 19:07:16 GMT]]></title><description><![CDATA[<p dir="auto">I also tried.</p>
<ul>
<li>'app/data/export/'</li>
<li>'/data/export/'<br />
I reloaded the cache every time. The additional templates do not appear.</li>
</ul>
]]></description><link>https://forum.cloudron.io/post/98305</link><guid isPermaLink="true">https://forum.cloudron.io/post/98305</guid><dc:creator><![CDATA[marylou]]></dc:creator><pubDate>Mon, 16 Dec 2024 19:07:16 GMT</pubDate></item><item><title><![CDATA[Reply to Add custom export templates: where to create the folder "export" and how to modify export.en.xlf? on Mon, 16 Dec 2024 18:59:37 GMT]]></title><description><![CDATA[<p dir="auto">What I don't understand is how Kimai should know what to call the additional template in the dropdown menu.<br />
This is why I think it it's necessary to also modify the export-en.xlf.</p>
<p dir="auto">Edit: I suppose it will get an id once it is located and the translation file would translate the ID into whatever "resname" you select. So I should expect to see an ID in the dropdown.</p>
]]></description><link>https://forum.cloudron.io/post/98303</link><guid isPermaLink="true">https://forum.cloudron.io/post/98303</guid><dc:creator><![CDATA[marylou]]></dc:creator><pubDate>Mon, 16 Dec 2024 18:59:37 GMT</pubDate></item><item><title><![CDATA[Reply to Add custom export templates: where to create the folder "export" and how to modify export.en.xlf? on Mon, 16 Dec 2024 18:36:28 GMT]]></title><description><![CDATA[<p dir="auto">I tried documents first, then defaults.</p>
]]></description><link>https://forum.cloudron.io/post/98302</link><guid isPermaLink="true">https://forum.cloudron.io/post/98302</guid><dc:creator><![CDATA[marylou]]></dc:creator><pubDate>Mon, 16 Dec 2024 18:36:28 GMT</pubDate></item><item><title><![CDATA[Reply to Add custom export templates: where to create the folder "export" and how to modify export.en.xlf? on Mon, 16 Dec 2024 18:27:30 GMT]]></title><description><![CDATA[<p dir="auto">Have you tried settings <code>documents</code> instead of <code>defaults</code> ?</p>
]]></description><link>https://forum.cloudron.io/post/98301</link><guid isPermaLink="true">https://forum.cloudron.io/post/98301</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 16 Dec 2024 18:27:30 GMT</pubDate></item><item><title><![CDATA[Reply to Add custom export templates: where to create the folder "export" and how to modify export.en.xlf? on Mon, 16 Dec 2024 18:22:59 GMT]]></title><description><![CDATA[<p dir="auto">Copying the default files into the folder did not work.</p>
]]></description><link>https://forum.cloudron.io/post/98300</link><guid isPermaLink="true">https://forum.cloudron.io/post/98300</guid><dc:creator><![CDATA[marylou]]></dc:creator><pubDate>Mon, 16 Dec 2024 18:22:59 GMT</pubDate></item><item><title><![CDATA[Reply to Add custom export templates: where to create the folder "export" and how to modify export.en.xlf? on Mon, 16 Dec 2024 18:10:09 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/joseph" aria-label="Profile: joseph">@<bdi>joseph</bdi></a>,</p>
<p dir="auto">Thank you for <a href="https://forum.cloudron.io/topic/6070/templates">your reply in the other thread on invoice templates</a>, but I am trying to add <strong>export</strong> templates, not invoice templates.</p>
<p dir="auto">They need to be in a directory called "export": <a href="https://www.kimai.org/documentation/export.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.kimai.org/documentation/export.html</a></p>
<p dir="auto">So I tried adding to local.yaml</p>
<pre><code>kimai:
    export:    
                documents:    
                        - '/app/data/export/'
</code></pre>
<p dir="auto">Unfortunately,my templates are not added to the dropdown menu.</p>
<p dir="auto">When I try to change documents to "templates", I get the following error message when I try to rebuild the cache:</p>
<pre><code>ERROR] Unrecognized option "template" under "kimai.export". Available options are "defaults", "documents".      
</code></pre>
<p dir="auto">When I use "defaults", the default templates disappear from the menu.</p>
<pre><code>kimai:
    export:    
               defaults:    
                        - '/app/data/export/'
</code></pre>
<p dir="auto">So I guess I could try to copy the defaults into the folder and point to defaults.</p>
]]></description><link>https://forum.cloudron.io/post/98298</link><guid isPermaLink="true">https://forum.cloudron.io/post/98298</guid><dc:creator><![CDATA[marylou]]></dc:creator><pubDate>Mon, 16 Dec 2024 18:10:09 GMT</pubDate></item></channel></rss>