Max Allan Niklasson Posted February 19, 2017 Posted February 19, 2017 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? 1
BitPoet Posted February 20, 2017 Posted February 20, 2017 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?).
LostKobrakai Posted February 20, 2017 Posted February 20, 2017 Alternatively you could provide methods in your module, which return the needed markup when called from manually created template files. 3
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now