This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Templates for custom modules


avatar
cosmin 269
From: -
Templates for custom modules

OK so let's say I create a custom module. If I install it the default style the templates of the custom module get installed, but the custom ones like newsportal or whatever don't get the new templates. So when I switch to newsportal for instance, as that style has no templates for the module I created, I'll just get blank pages. To top it all off, I can't add the customt templates to newsportal, let's say, because the contents of the templates is somehow encrypted and is only readable in the database. How can I do this? I've wasted a lot of time strugling with this and messed up my clean installs on two websites.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Templates for custom modules
avatar
Editor
0
From: -
So when I switch to newsportal for instance, as that style has no templates for the module I created, I'll just get blank pages.

For that purpose is the Sync Templates option. Sync Template will compare all template sets and apply all changes to all template sets.

Always backup your database before you run sync templates.

To top it all off, I can't add the customt templates to newsportal, let's say, because the contents of the templates is somehow encrypted and is only readable in the database. How can I do this? I've wasted a lot of time strugling with this and messed up my clean installs on two websites.


There are two ways to doing this, here the easiest one:

1) Import newsportal
2) Now add your custom templates with the template editor to newsportal
3) Export the template set to XML file

The other way is:

1) Import newsportal
2) Export it to HTML/PHP files
3) Download the files from /templates to edit it in your favorite editor. You could also add new HTML/PHP files to the template set
4) After you finished, upload the files back to your /templates directory
5) Import the HTML/PHP files
6) Export the template set to XML file

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.