Jump to content

Recommended Posts

  • 6 months later...
Posted

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.

Posted

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.

  • Like 1
Posted

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.

  • 2 weeks later...
Posted

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

  • Like 1
Posted

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) :)

  • Like 1
  • 1 month later...
  • 1 month later...
Posted

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...

post-3301-0-63128800-1429251975_thumb.pn

What are the possible way to solve this problem thanks in advance....

P.W. ver: 2.5

PHP: 5.3

Mysql: 5.2

Posted

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

Posted

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......

  • 3 weeks later...
Posted

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

Posted (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 by Macrura
post-testing
Posted

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.

  • Like 2
  • 9 months later...
Posted

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.

  • 1 month later...
Posted (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 by kongondo
Moved your question to the module's support board

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
×
×
  • Create New...