Using Tellico do make a website

José Marcio Martins da Cruz jose.marcio.mc at gmail.com
Mon Mar 11 09:34:33 GMT 2024


Hello Bruno,

D'acc. I've forked it.

It's a very nice complement to tellico. If Robbie is reading me, maybe he could put a link to tellico2html in the 
Tellico web site...

I have some suggestions, other than the doc. They seem quite trivial and I can work on it, if you agree with them.

* when creating tmpl directory, put inside some required files : Header.tt, Footer.tt and index.tt. tellico2html rants 
if they aren't there.

* the same with some style.css file. If tellico2html finds it, use it. If not, do the current way.

* allow multiple collections to use the same template. In my case, I have three collections of books. All of them can 
use the same template. A solution to this is to add a configuration option in .tellico2htmlrc file telling which 
template to use. If this configuration isn't found, do as it's done today.

P.S. - I though I've already sent this message... but in fact no. I'll work on this as soon as I have some time. Not 
already retired.

Best

José-Marcio


On 2/26/24 18:11, Bruno Cornec wrote:
> Hello José,
> 
> If you see how to improve by documentation the field names issue you
> encoutered, let me know.
> 
> Indeed, I have a similar cron job on my side ;-)
> 
> I adopted your suggestion and pushed it. Thanks for that.
> Next time, feel free to fork the repo and make a pull request so your
> contact info are used and you're directly credited.
> 
> Best regards,
> Bruno.
> 
> José Marcio Martins da Cruz said on Mon, Feb 26, 2024 at 12:39:33PM +0100:
> 
>> Date: Mon, 26 Feb 2024 12:39:33 +0100
>> From: José Marcio Martins da Cruz <jose.marcio.mc at gmail.com>
>> Subject: Re: Using Tellico do make a website
>> To: Bruno Cornec <bruno at musique-ancienne.org>
>> Cc: tellico-users at kde.org
>> User-Agent: Mozilla Thunderbird
>>
>>
>> Salut Bruno,
>>
>> My feedback,
>>
>> It's what I was intending to do.
>>
>> I've created the web pages for one of my collections - 1600 books, with the Livres.tt template.
>>
>> HTML generation took only 15 seconds against some minutes on the tellico application. Just 1.5 secs to update after a 
>> tellico database modification. Some problems with field names, but very easy to solve. The template example is a good 
>> quick start.
>>
>> A command line tool is what I was wanting : put it in a crontab and push it to my webserver... ;-)
>>
>> A little suggestion : when launching tellico2html for the first time you create a default configuration file with 
>> default values and create directories. But if directory places aren't the proposed, ... I suggest to just create the 
>> configuration file, exit and tell user to personalize the configuration file and launch tellico2html again.
>>
>> It's very simple to do this. I'm attaching a patch, if you accept.
>>
>> Best regards and thank you for this tool
>>
>> José-Marcio
>>
>> On 2/26/24 00:01, Bruno Cornec wrote:
>>> Hello José,
>>>
>>> José Marcio Martins da Cruz said on Sun, Feb 25, 2024 at 01:52:51AM +0100:
>>>> It lacks a colon just after tmpldir in the rc file created at first time.
>>>
>>> Nice catch ! Fixed upstream at https://github.com/bcornec/tellico2html/tree/master
>>>
>>> Let me know if it's also useful for you !
>>>
>>> Greetings,
>>> Bruno.
> 
>> --- tellico2html.org    2024-02-26 09:59:59.945717401 +0100
>> +++ tellico2html    2024-02-26 12:12:05.066011588 +0100
>> @@ -90,7 +90,8 @@
>>     print CF "  sharedir: $sharedir\n";
>>     print CF "  tmpldir: $tmpldir\n";
>>     close(CF);
>> -    print "Please review $cf to adapt to your context\n";
>> +    print "Please review $cf to adapt to your context and launch tellico2html again\n";
>> +    exit 0
>> }
>> print "Loading YAML conf file $cf\n";
>> my $lh = YAML::LoadFile($cf);
> 
> 



More information about the tellico-users mailing list