I’m trying to move the company I work for towards including .tpl files that contain html and PHP instead of having the HTML inline in the same script as the PHP code.
My designer commented that he can’t edit .tpl files in Dreamweaver, but with the inline solution he can edit pages with the WYSIWYG editor even if it contains PHP, and he can click to edit included PHP files as well.
I’m wondering if there’s a way for him to continue being able to edit his design code using .tpl files without having to open a text editor? It seems like with all the major PHP frameworks that use some sort of templating solution, there should be an easy way to solve this issue.
Hmm, I don’t know much about .tpl files, but from what I’ve heard they’re not very compatible with Dw. (Don’t take that as a final answer, though.) You can set up templates in Dw itself:
But it sounds to me like it might be better to use a CMS for this kind of project. Have you considered that?
Yeah, I’ve heard dreamweaver templates are difficult to work with, not to mention not all of us use dreamweaver so I don’t want to be relying on anything proprietary.
What does using a CMS have to do with anything? We use one, it’s just custom.
The types of CMSs I’m used to (like ExpressionEngine) don’t require an editor like Dw at all. Sections are linked to pre-designed templates. I just thought it might save you from the issue you mentioned above, but maybe not. I don’t know what environment you are operating in.
I’ll leave this thread to someone who knows specifically ablut .tpl files.
A .tpl is basically identical to a .html file in what it contains so you can edit them in ANY web editor the same way, just change the program to recognise that extension as being valid for HTML files.