Koha Test Wiki MW Canasta on Koha Portainer

Test major Koha Wiki changes or bug fixes here without fear of breaking the production wiki.

For the current Koha Wiki, visit https://wiki.koha-community.org .

Htp-to-tt-conversion

From Koha Test Wiki MW Canasta on Koha Portainer
Jump to navigation Jump to search
Note.jpg

WARNING! This page is obsolete.
This page is no longer correct and exists for historical reasons only.

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

eg

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/html-template-to-template-toolkit.pl  --koharoot /path/to/the/root

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

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

So for me

./installer/html-template-to-template-toolkit.pl -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.

Note.jpg

WARNING! This page is obsolete.
This page is no longer correct and exists for historical reasons only.