Giorgi625 VIP
Total posts: 576
28 Май 2017 10:55

If you did not understand fro mtitle I will explain:

I am creating custom template for cobalt record.

Record has almost 20 fields which are called by keys each in separate position so code is not short.

From image you can see that top halp of image has normal structure, this is how I write code, but after saving file, it looks like bottom part of image.

What can cause this ? Gzip compression is disabled in Global configs, also CSS and JS compressions are also disabled in Joomla template.

https://s8.postimg.org/it0o0cmdh/cats.jpg

Последние изменения: 18 Июнь 2017


Sergey
Total posts: 13,688
02 Июнь 2017 12:09

What editor do you use?


Giorgi625 VIP
Total posts: 576
02 Июнь 2017 17:51

Notepad++

As I discovered some tempaltes does not lose structure like this and look good after saving, some lose like on screenshot above.


Sergey
Total posts: 13,688
18 Июнь 2017 09:26

you work with coe so much. Use something more substantial like PhpStorm, Eclips or at list VS Code. there is autoformat option you can quickly reformat your document.


Giorgi625 VIP
Total posts: 576
18 Июнь 2017 17:38

Sergey you work with coe so much. Use something more substantial like PhpStorm, Eclips or at list VS Code. there is autoformat option you can quickly reformat your document.

Thanks, I will try them

Работает на Cobalt