Editing dotcms templates in eclipse

Dotcms has a good speed-based template system, but it looks like it only supports editing speed templates built into a browser that partially sucks. I really like using Eclipse when writing speed templates (got some good speed support, and this is a much better editor, and then a standard text-based browser control).

Is there a way to edit dotcms templates from Eclipse and then automatically import them into dotcms. Or do I really need to write them in Eclipse and then copy / paste each template into the browser every time I edit it?

+3
source share
1 answer

I agree that working in eclipse is much better than working in a browser. This is why I will outsource all Velocity code and include these external files in my content. Using webdav, you can set the dotcms website browser to the drive letter of Windows. Thus, you can edit files using other editors. I do it like this:

  • Create a folder in the dotCMS web browser: /vtl
  • Put all speed in separate files in this folder: /vtl/filteredProducts.vtl
  • In the content, put # dotparse instead of the speed code itself.#dotParse("/vtl/filteredProducts.vtl")
  • dotCMS webdav : http://www.yourdomain.com/webdav/autopub. , dotCMS, , webdav, ( dotCMS, ). webdav , irt . Netdrive, . Gladinet. webdav .

eclipse.

:

  • webdav , , eclipse ( svn/ git), webdav . Beyond Compare . , 100% . , .
  • Webdav , : . , , , . vtl, .
  • , webdav, . #parse. , .

, .

+2

All Articles