Resource icon

Edit XenForo templates using editor

  • Thread starter Thread starter Deleted member 7866
  • Start date Start date
D

Deleted member 7866

Guest
Adshi submitted a new resource:

Edit XenForo templates using editor (version 1.0) - This guide shows how to edit XenForo templates with your favourite editor using WebDAV.

XenForo provides a WevDAV protocol interface which makes templates editing even easier.

To use this funcionality you must connect WebDAV client (if your code editor don't support it you can try Cyberduck). to admindav.php in your root XenForo installation folder.

Some configuration screens (Cyberduck and Coda 2):
View attachment 40426View attachment 40427

Remember, debug mode must be enabled!
(To enable id append...

Read more about this resource...
 
Cyberduck also works on Windows.

If you are looking for editor with WebDAV support you can try Notepad++ or NetBeans.
 
Cyberduck also works on Windows.

If you are looking for editor with WebDAV support you can try Notepad++ or NetBeans.

Hi

I use Netbeans IDE 7.2. I can't seem to find anywhere how to input webdav settings. Any ideas? Thanks.
 
Thanks for the guide, this works great and I'm using it successfully with Transmit on OS X.

However, whenever I save a template, my editor freezes for ~5 seconds waiting for the requests to Apache to complete. The OS X spinning beachball of death appears and I can't do anything in the editor until the requests finish.

This is quite a productivity killer. It's almost more efficient to use the Admin control panel editor, but then you lose all the niceties of a proper editor.

Looking at the apache logs, here's an example of the requests made when saving a template:

Code:
127.0.0.1 - User [19/Jun/2015:14:22:49 +0100] "PROPFIND /admindav.php/Public_Templates/Master%20Style%20(0)/ HTTP/1.1" 207 374
127.0.0.1 - User [19/Jun/2015:14:22:49 +0100] "PUT /admindav.php/Public_Templates/Master%20Style%20(0)/account_alerts.html HTTP/1.1" 200 -
127.0.0.1 - User [19/Jun/2015:14:22:50 +0100] "PROPFIND /admindav.php/ HTTP/1.1" 207 492
************* 5+ SECOND PAUSE *************
127.0.0.1 - User [19/Jun/2015:14:22:50 +0100] "PROPFIND /admindav.php/Public_Templates/Master%20Style%20(0)/ HTTP/1.1" 207 261020

I'm using the stock Apache v2.4.10 shipped with Yosemite and mod_dav.

@Adshi or anyone else experienced this?
 
Back
Top Bottom