Htp to tt conversion

From Koha Wiki

Jump to: navigation, search
Koha > Technical > Development

There may be a need for people to convert a template to template::toolkit so they can send a patch that will apply cleanly.

To do so checkout a branch based on commit d4cd05126da3accef83144d8322fcd455d7eba9b


git checkout -b convert_templates d4cd05126da3accef83144d8322fcd455d7eba9b

Now you have a branch with both sets of templates, you can then cherry-pick your template change over.

And run

./installer/  --koharoot /path/to/the/root

This will convert all the templates, if you want to just convert 1 use -f eg

./installer/  --koharoot /path/to/the/root -f koha-tmpl/opac-tmpl/prog/en/modules/ilsdi.tmpl

So for me

./installer/ -c --koharoot 
/home/chrisc/git/koha/ -f koha-tmpl/opac-tmpl/prog/en/modules/ilsdi.tmpl

Then that file will be in the koha-tt dir and you will now have a converted file.

Personal tools