Jump to content

TemplateEditor


Nico Knoll
 Share

Recommended Posts

  • 6 months later...

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

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
Link to comment
Share on other sites

  • 2 weeks later...

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
Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...

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

Link to comment
Share on other sites

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

  • 3 weeks later...

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • 9 months later...

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

  • 1 month later...

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