Jump to content

IPS4: Better Template Editing


Recommended Posts

Template editing improvements: tabs, ctrl-s, auto tabbing
The template editor in the admin CP is now easier to code directly within with a few changes:
  • Pressing tab will now insert an actual tab.
  • You can save the template using ctrl+s (or cmd+s).
  • When you press enter on a line that starts with whitespace, the next line will automatically start with that amount of whitespace. (Basically, this keeps your tab depth.)
  • If you highlight multiple lines, you can use tab or shift-tab to indent or outdent all of the selected lines automatically.


Something like that would be awesomely awesome :)

Link to comment
Share on other sites

Something I find annoying is the fact is if I'm doing a quick change in a template and I do just "CTRL" it automatically thinks I've made an change to the template which I haven't . Would be great to see that not happen in IPB4 :X

Link to comment
Share on other sites

I've already discussed with Mark about the time it takes to save files using WebDAV making it unusable. It's quicker to save templates in the ACP.

Then a THIRD (and final...there are no others I'm aware of) option would be to enable IN_DEV, export the master template directories, create a new skin directory under skin_cache, edit masterMap.php to use that for IN_DEV, and edit the files directly out of that folder. It's a lot more tedious, but it is a true disk-based template file system. It's how we develop the software, and how addon authors would add new skin files for applications typically.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...