Tellico/Templates: Difference between revisions
(Marked this version for translation) |
m (Update link) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
<!--T:1--> | <!--T:1--> | ||
[[Tellico|Tellico]] uses XSL templates for formatting the information shown in the main window, as well as for creating reports, exporting HTML, and printing. | [[Special:myLanguage/Tellico|Tellico]] uses '''XSL''' templates for formatting the information shown in the main window, as well as for creating reports, exporting '''HTML''', and printing. | ||
<!--T:2--> | <!--T:2--> | ||
'''Tellico''' data is passed to the template in XML format, and the template converts that data to HTML for display. The templates can make full use of both CSS and Javascript, and can reference images or objects locally or elsewhere on the Internet. | '''Tellico''' data is passed to the template in XML format, and the template converts that data to '''HTML''' for display. The templates can make full use of both '''CSS''' and '''Javascript''', and can reference images or objects locally or elsewhere on the Internet. | ||
<!--T:3--> | <!--T:3--> | ||
User-contributed templates may be downloaded from [ | User-contributed templates may be downloaded from [https://store.kde.org/browse/cat/591/order/latest/ store.kde.org]. | ||
<!--T:4--> | <!--T:4--> | ||
All templates should be installed in the local KDE application directory. The specific path may be found by adding <code>/tellico/</code> to the | All templates should be installed in the local KDE application directory. The specific path may be found by adding <code>/tellico/</code> to the first location from the command: | ||
{{Input|1= | {{Input|1=kf5-config --path data}} | ||
The location is likely to be | The location is likely to be | ||
{{Output|1=$HOME/. | {{Output|1=$HOME/.local/share/tellico/}} | ||
== Entry Templates == <!--T:5--> | == Entry Templates == <!--T:5--> | ||
<!--T:6--> | <!--T:6--> | ||
''Entry templates'' are used in the main window for showing the information for a single entry (book, album, etc.). The screenshot below is the [ | ''Entry templates'' are used in the main window for showing the information for a single entry (book, album, etc.). The screenshot below is the [https://store.kde.org/p/1309595/ Berean Curves] template. | ||
<!--T:7--> | <!--T:7--> | ||
Line 27: | Line 27: | ||
<!--T:8--> | <!--T:8--> | ||
The directory for installing entry templates is the application path, mentioned earlier, followed by ''/entry-templates/''. For example, most users would install entry templates in | The directory for installing entry templates is the application path, mentioned earlier, followed by ''/entry-templates/''. For example, most users would install entry templates in | ||
{{Input|1=$HOME/. | {{Input|1=$HOME/.local/share/tellico/entry-templates/}} | ||
<!--T:9--> | <!--T:9--> | ||
After installing a new template, open the < | After installing a new template, open the <menuchoice>Configure Tellico</menuchoice> dialog to the <menuchoice>Templates</menuchoice> page and select the new template. Templates can also be previewed there. | ||
<!--T:10--> | <!--T:10--> | ||
Entry templates can also be installed or downloaded directly from within [[Tellico|Tellico]] from the same Settings dialog. | Entry templates can also be installed or downloaded directly from within [[Special:myLanguage/Tellico|Tellico]] from the same <menuchoice>Settings -> Configure Tellico</menuchoice> dialog. | ||
== Report Templates == <!--T:11--> | == Report Templates == <!--T:11--> | ||
Line 42: | Line 42: | ||
<!--T:13--> | <!--T:13--> | ||
The directory for installing report templates is the application path, mentioned earlier, followed by <code>/report-templates/</code>. For example, most users would install templates in | The directory for installing report templates is the application path, mentioned earlier, followed by <code>/report-templates/</code>. For example, most users would install templates in | ||
{{Input|1=$HOME/. | {{Input|1=$HOME/.local/share/tellico/report-templates/}} | ||
<!--T:14--> | <!--T:14--> | ||
After installing a new template, open the Report | After installing a new template, open the '''Report''' dialog. The new template should be available there. | ||
<!--T:15--> | <!--T:15--> |
Latest revision as of 19:23, 17 March 2021
Tellico uses XSL templates for formatting the information shown in the main window, as well as for creating reports, exporting HTML, and printing.
Tellico data is passed to the template in XML format, and the template converts that data to HTML for display. The templates can make full use of both CSS and Javascript, and can reference images or objects locally or elsewhere on the Internet.
User-contributed templates may be downloaded from store.kde.org.
All templates should be installed in the local KDE application directory. The specific path may be found by adding /tellico/
to the first location from the command:
kf5-config --path data
The location is likely to be
$HOME/.local/share/tellico/
Entry Templates
Entry templates are used in the main window for showing the information for a single entry (book, album, etc.). The screenshot below is the Berean Curves template.
The directory for installing entry templates is the application path, mentioned earlier, followed by /entry-templates/. For example, most users would install entry templates in
$HOME/.local/share/tellico/entry-templates/
After installing a new template, open the
dialog to the page and select the new template. Templates can also be previewed there.Entry templates can also be installed or downloaded directly from within Tellico from the same dialog.
Report Templates
Report Templates process the information for the complete collection. Some templates will show only titles, images, or collection statistics.
The directory for installing report templates is the application path, mentioned earlier, followed by /report-templates/
. For example, most users would install templates in
$HOME/.local/share/tellico/report-templates/
After installing a new template, open the Report dialog. The new template should be available there.