Nico Knoll Posted June 15, 2014 Author Share Posted June 15, 2014 Huge update: * Added media file preview * Added multilayer support * Enabled to use the tab key http://modules.processwire.com/modules/template-editor/ 4 Link to comment Share on other sites More sharing options...
gfdesign Posted January 9, 2015 Share Posted January 9, 2015 I've installed this module in PW 2.4 but I don't see the 'Template Editor' option in my admin menu. Also, I've installed 'InputfieldAceEditor' module as you suggested but no luck. I am working in XAMPP 1.7.7 / PHP: 5.3.8 / Win7 / Firefox. What I would be doing wrong?Thanks in advanced. Link to comment Share on other sites More sharing options...
cstevensjr Posted January 9, 2015 Share Posted January 9, 2015 Without looking too hard, I would suggest you upgrade the XAMPP (Current version is 5.6.3, so what you have is old and may not still be supported). The PHP minimum for PW is 5.3.8, however it wouldn't hurt to have a more recent version. 1 Link to comment Share on other sites More sharing options...
gfdesign Posted January 9, 2015 Share Posted January 9, 2015 Yes, I'm aware that I'm still using an old version but it's due to other apps I have in my local environment that run well with it. I'll try in a clean installation.Thanks for commenting. Link to comment Share on other sites More sharing options...
Nico Knoll Posted January 10, 2015 Author Share Posted January 10, 2015 It's 2.5 only in the new release. You could use an older release which works with 2.4... (This one: https://github.com/NicoKnoll/ProcessTemplateEditor/tree/e7d27dbad6b38678137a023b26d8cca9f0d042c9) 1 Link to comment Share on other sites More sharing options...
gfdesign Posted January 11, 2015 Share Posted January 11, 2015 Hi Nico. Could you provide me again the link? because I see a dead page (#404) Thanks in advanced Link to comment Share on other sites More sharing options...
Nico Knoll Posted January 13, 2015 Author Share Posted January 13, 2015 https://github.com/NicoKnoll/ProcessTemplateEditor/tree/e7d27dbad6b38678137a023b26d8cca9f0d042c9 (the forum thought the ")" would be part of the url) Link to comment Share on other sites More sharing options...
Stikki Posted January 28, 2015 Share Posted January 28, 2015 Hi Nico, This looks great module and works perfectly. Some suggestions / ideas: 1) file name could be hidden by default 2) option to define ignore list for files / folders Even without those it's great, my 2 cents Cheers 1 Link to comment Share on other sites More sharing options...
Nico Knoll Posted January 31, 2015 Author Share Posted January 31, 2015 Well I think it's better to leave the file name visible. Otherwise you may not know which file you are working on currently... But I think I'll add this option (your second point) 1 Link to comment Share on other sites More sharing options...
brightdroid Posted March 4, 2015 Share Posted March 4, 2015 Thanks for this module PS: the 2.5 compatibility is not choosen on the module page Link to comment Share on other sites More sharing options...
naldrocks98 Posted April 17, 2015 Share Posted April 17, 2015 Hi, Im still new to processwire... after i install the template editor module in my P.W. i get this error when i click my template files that are installed in template forlder... What are the possible way to solve this problem thanks in advance.... P.W. ver: 2.5 PHP: 5.3 Mysql: 5.2 Link to comment Share on other sites More sharing options...
cstevensjr Posted April 17, 2015 Share Posted April 17, 2015 P.W. ver: 2.5 PHP: 5.3 Mysql: 5.2 Do you think you can expand a little bit on the version numbers? Is it PW 2.5.3 or 2.5.23 or 2.5.26? Same thing with the PHP version. Thanks Link to comment Share on other sites More sharing options...
Nico Knoll Posted April 17, 2015 Author Share Posted April 17, 2015 Are you sure you're using PHP 5.3? Because PHP 5.3+ should have finfo_open() included by default... http://php.net/manual/en/function.finfo-open.php 1 Link to comment Share on other sites More sharing options...
naldrocks98 Posted April 17, 2015 Share Posted April 17, 2015 here is it bro....hehe P.W. : 2.5.25 my php is just version 5.3 Link to comment Share on other sites More sharing options...
cstevensjr Posted April 17, 2015 Share Posted April 17, 2015 The PW minimum for 2.5.x is 5.3.8 1 Link to comment Share on other sites More sharing options...
cstevensjr Posted April 17, 2015 Share Posted April 17, 2015 Please look here for possible answer: http://stackoverflow.com/questions/3579072/php-fileinfo-is-undefined-function Link to comment Share on other sites More sharing options...
matjazp Posted April 17, 2015 Share Posted April 17, 2015 I had to add extension=php_fileinfo.dll to php.ini on windows environment... 1 Link to comment Share on other sites More sharing options...
naldrocks98 Posted April 17, 2015 Share Posted April 17, 2015 Apache 2.2.21 + MySQL 5.5.16 (Community Server) + PHP 5.3.8 (VC9 X86 32bit thread safe) + PEAR + XAMPP Control Panel Version 2.5 from www.nat32.com + (BETA) XAMPP Control Panel Version 3.0.2 by Steffen Strueber (not in the USB & lite version) see http://www.apachefriends.org/f/viewtopic.php?f=16&t=46743 + XAMPP Security + OpenSSL 1.0.0e + phpMyAdmin 3.4.5 + ADOdb 5.14 + Mercury Mail Transport System v4.62 (not in the USB & lite version) + FileZilla FTP Server 0.9.39 (not in the USB & lite version) + Webalizer 2.23-04 (not in the USB & lite version) + Perl 5.10.1 (not in the USB & lite version) + Mod_perl 2.0.4 (not in the USB & lite version) + Tomcat 7.0.21 (not in the USB & lite version) here's my xampp installed in my computer...... Link to comment Share on other sites More sharing options...
cstevensjr Posted April 17, 2015 Share Posted April 17, 2015 Taking a quick look at your environment and totally unrelated to your current issue, I would suggest you find time to upgrade your OpenSSL 1 Link to comment Share on other sites More sharing options...
naldrocks98 Posted April 17, 2015 Share Posted April 17, 2015 thanks cstevensjr matjazp you just solved my problem..... i'll just edit my php.ini and enable extension=php_fileinfo.dll. 1 Link to comment Share on other sites More sharing options...
Gideon So Posted May 6, 2015 Share Posted May 6, 2015 Hi, Can I use this module to editor CSS and JS file?? I tried to edit CSS files with this module but it keep saying that "template file not found".. I am using Processwire 2.5.29. Gideon So Link to comment Share on other sites More sharing options...
Macrura Posted May 6, 2015 Share Posted May 6, 2015 (edited) it should be possible to edit any file within the templates folder. If you are experiencing issues/errors with it, I would recommend submitting it here: https://github.com/NicoKnoll/ProcessTemplateEditor/issues Also, for a better editing experience, try using the new AceExtended editor; it is supposed to work now with this. Edit: just checked and was able to open, edit and save CSS and JS files. Edited May 6, 2015 by Macrura post-testing Link to comment Share on other sites More sharing options...
Gideon So Posted May 6, 2015 Share Posted May 6, 2015 Hi Macrura, I have all my CSS files in a sub-folder in the templates folder. Is this reason I can't edit them? In fact, I can see all of them in the templates editor. Gideon edit: File permission problem. I change the permission of the CSS folder to 774 and it works. 2 Link to comment Share on other sites More sharing options...
theo Posted February 20, 2016 Share Posted February 20, 2016 Hi Thanks for the Template Editor. It's great! For PW 3.0 I had to change line 274 from: if("$fm" == $baseClass || is_subclass_of("$fm", $baseClass))to: if("$fm" == $baseClass || is_subclass_of("$fm", $baseClass) || is_subclass_of("$fm", "ProcessWire\\".$baseClass)) Not sure if it is the best way, but it lets me choose "AceExtended" again from the "Inputfield Type" list. I am an absolute beginner with PW. Thank you. Link to comment Share on other sites More sharing options...
kazu Posted April 2, 2016 Share Posted April 2, 2016 (edited) When I use the Template Editor I get that message back: Filename Be careful with this. If you're changing the file name you probably have to change the template's name manually, too. Preview <p>Preview doesn't support "" media type. The template would not be displayed. The error message does not reveal what's the problem. Mmhhh ... Media Type seems to be the problem. Can I add myself MediaTypes, so that I can edit this? Edited April 3, 2016 by kongondo Moved your question to the module's support board Link to comment Share on other sites More sharing options...
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