Page 1 of 1

Editing Template Question

Posted: Wed Sep 13, 2017 11:30 am
by tubeman
Hi,I see that while editing templates it does not all more than 992 lines of code per template , how do I increase this number to for example 3000?

Re: Editing Template Question

Posted: Wed Sep 13, 2017 11:36 am
by admin
The only limit is 64kb - txt field in mysql.

Is you template larger then that ?

Re: Editing Template Question

Posted: Wed Sep 13, 2017 11:50 am
by tubeman
Yes its larger than that, how do I increase it?

Re: Editing Template Question

Posted: Wed Sep 13, 2017 11:52 am
by admin
Well you can do it in mysql but i thibk it's a good ides to check your template
Honestly I haven't seen templates that large
Note that large template => higher loading times for user => lower prod ..

Re: Editing Template Question

Posted: Wed Sep 13, 2017 11:58 am
by tubeman
Yes but template output should be less as its only if else statements of 1000 lines which will only display 1 line in output.Correct?

Re: Editing Template Question

Posted: Wed Sep 13, 2017 12:03 pm
by admin
Yes
What do you have 1000 ifs for ?

Re: Editing Template Question

Posted: Wed Sep 13, 2017 12:06 pm
by tubeman
How do I exactly increase the value of text field in mysql?

Re: Editing Template Question

Posted: Wed Sep 13, 2017 12:09 pm
by admin
I see, you don't want to optimize your template

ALTER TABLE `rot_pages` CHANGE `template` `template` LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL

Re: Editing Template Question

Posted: Wed Sep 13, 2017 1:08 pm
by tubeman
Thank you, that worked.

Re: Editing Template Question

Posted: Wed Sep 13, 2017 1:14 pm
by admin
NP