Jump to content

Storing front-end template in module


Max Allan Niklasson
 Share

Recommended Posts

Hi, I think this is my first topic, even though I've been working with PW a few years. But now, I'm trying to restructure my way of coding, cause many templates (like activities for birding societies) are re appearing in multiple different websites. Since this, I've been working on redo this into a module, but as far as I have read I cannot store the templates (related to specific module) in the module's folder. It has to be in the templates folder?

 

  • Like 1
Link to comment
Share on other sites

You can distribute your templates with your module and copy them into the templates folder in the install routine. The Blog module does it this way. You will need to think about how you handle updates and reinstalls (overwrite, err out, copy with version prefix?).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...