Giorgi625 VIP
Total posts: 655
28 May 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

Last Modified: 18 Jun 2017


Sergey
Total posts: 13,748
02 Jun 2017 12:09

What editor do you use?


Giorgi625 VIP
Total posts: 655
02 Jun 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,748
18 Jun 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: 655
18 Jun 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

Powered by Cobalt