How can i "download" my Templates from the DB.

Moderator: crythias

Locked
AndresCL
Znuny newbie
Posts: 2
Joined: 02 Feb 2017, 15:16
Znuny Version: 4.2.0.1
Real Name: Andres Ahumada
Company: Schibsted

How can i "download" my Templates from the DB.

Post by AndresCL »

Hello everyone! New here and new in some tools of OTRS.
I want to get all my templates in a single file .html or .csv or .xl
I think i could get them from the SQL console.
Any tip for what kind of code may access to get this information at once?

:shock:
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: How can i "download" my Templates from the DB.

Post by RStraub »

What do you want to achieve?

The templates for OTRS are not in HTML. They are written as "TemplateToolkit" (thus .tt files). Those are very similar to HTML but will have to first be processed by TemplateToolkit before it's real HTML.

You can find them here:
https://github.com/OTRS/otrs/tree/maste ... s/Standard
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
AndresCL
Znuny newbie
Posts: 2
Joined: 02 Feb 2017, 15:16
Znuny Version: 4.2.0.1
Real Name: Andres Ahumada
Company: Schibsted

Re: How can i "download" my Templates from the DB.

Post by AndresCL »

I have created 269 templates so far. I want to manage them outside otrs platform. Just want the "text" from each one in the same file. I know the SQL console can "reach and get" them and export to html, csv and excel.

Sorry, I'm really noob on the "Developer" segment of the platform.
Locked