Announcing tellico2html (was: Issue with HTML export)

Bruno Cornec bruno at
Fri Oct 5 02:44:03 BST 2018

Hello tellicoers !
oDue to the issues I had to created in an automatic fashion a web site
from my tellico data, I passed a bit of time these last days to create a
script perfoming it for me, and thought it could be of interest to this

So I'm announcing the availability of tellico2html, a tool to 
automatically generate a Web site from Tellico data using Perl scripts 
and Template Toolkit.

More info available at

I provided samples of my .tc files with it so you can generate web pages
from it, and see how you could use it for your own collections (doc
online on how to do that).

And many thanks to Robby from providing tellico without which all that
wouldn't exist and I wouldn't know ho to manage my collections ;-)

One problem I'm still trying to solve, is that the field name of the
image managed for wine is called "label", whereas it's "cover" for all
the other collections I manage, which doesn't help when copying the
image files in the target directory for HTML pages to use them.

I tried to change thatin the tellico.xml file in the .tc, but as soon as
I use tellico again it's changed back. I also try to patch (attached)
winecollection.cpp, but it seems there are other mechanisms involved
which put the "label" back in place. 


On Wed, Sep 05, 2018 at 09:31:36PM -0400, Robby Stephenson wrote:
> Date: Wed, 5 Sep 2018 21:31:36 -0400
> From: Robby Stephenson <robby at>
> Subject: Re: Issue with HTML export
> To: Bruno Cornec <bruno at>
> Cc: Tellico <tellico-users at>
> On Wed, Sep 5, 2018 at 1:55 PM Bruno Cornec <bruno at>
> wrote:
> > If I try from the CLI using the following command:
> > $ qdbus org.kde.tellico /Tellico org.kde.tellico.exportHTML Disques.html
> >
> > I get the follwing error:
> > Error: org.freedesktop.DBus.Error.NoReply
> > Did not receive a reply. Possible causes include: the remote application
> > did not send a reply, the message bus security policy blocked the reply,
> > the reply timeout expired, or the network connection was broken.
> >
> > Is there a way to extend the timeout value so I have no issue anymore ?
> > Or any other tip to avoid that problem.
> >
> I don't know of anything off-hand, but I'll poke around.
> > I also tried another approach which is:
> >
> > $ unzip -p | xsltproc  /usr/share/tellico/tellico2html.xsl - >
> > Disques2.html
> >
> > Which this time works, but doesn't generate the fields I want (as only
> > title is mentionned in the xsl file) and also doesn't generate the
> > individual html files per CD as with the graphical interface (which asks
> > questions. Looking at the code, it seems that based on the options
> > chosen, more functions are called to generate the correct content, but
> > is there a way to get the final .xsl file generated so we could reuse it
> > directly, or is there another solution to that approach (that would be
> > more effective and usable with cron as well :-)
> There isn't a way to generate the individual HTML file with the
> unzip/xsltproc approach. But, you can tweak the HTML file output itself,
> though, passing --stringparam to the xsltproc command. Check the
> tellico2html.xsl file for some available parameters, such as
>  $ unzip -p tellico.xml | xsltproc  --stringparam column-names
> 'title artist' /usr/share/tellico/tellico2html.xsl - > Disques2.html
> The column-names parameter is a space separated list of field names to use
> for columns. You can set the grouping and sorting parameters,as well.
> Robby

Des infos sur la musique ancienne  --
Des infos sur les logiciels libres --
Home, sweet musical Home -- Lover of Andromède, Béatrice, Early Music, 
Josquin, Linux, Mélisande, Recorder, and Ségolène (not in that order)
-------------- next part --------------
--- tellico-3.1.3/src/collections/winecollection.cpp.prev	2018-10-04 15:47:24.929618882 +0200
+++ tellico-3.1.3/src/collections/winecollection.cpp	2018-10-04 15:47:33.999499520 +0200
@@ -119,7 +119,7 @@
-  field = new Field(QStringLiteral("label"), i18n("Label Image"), Field::Image);
+  field = new Field(QStringLiteral("cover"), i18n("Label Image"), Field::Image);
   field = new Field(QStringLiteral("description"), i18n("Description"), Field::Para);

More information about the tellico-users mailing list