Editing Template Question

Post Reply
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Editing Template Question

Post 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?
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Editing Template Question

Post by admin »

The only limit is 64kb - txt field in mysql.

Is you template larger then that ?
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Editing Template Question

Post by tubeman »

Yes its larger than that, how do I increase it?
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Editing Template Question

Post 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 ..
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Editing Template Question

Post 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?
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Editing Template Question

Post by admin »

Yes
What do you have 1000 ifs for ?
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Editing Template Question

Post by tubeman »

How do I exactly increase the value of text field in mysql?
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Editing Template Question

Post 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
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Editing Template Question

Post by tubeman »

Thank you, that worked.
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Editing Template Question

Post by admin »

NP
Don't forget to run script update
Post Reply