Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Error i cant debug
Dragondz wrote #304021:
i tryed a purchased template and pasting it as is (without any txp tag) get over 77000 chars.
Okay, yeah, pre-packaged templates could well be that big. Makes sense now, thanks for clarifying.
We could increase the column size but would have to do some benchmarks first, and see if this would be generally useful to the community at large. If a lot of people are pasting in huge templates from third party resources and using them as a base for Txp sites, it may be something we need to consider.
Or tell the template creators to stop writing such bloated code :-)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#14 2017-02-14 12:27:34
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,477
Re: Error i cant debug
Offline
Re: Error i cant debug
Offline
Re: Error i cant debug
I’ve been working on a template I purchased over at Theme Forest. The default front page was huge but I cut it down to:
<txp:output_form form="start" />
<body class="gray">
<txp:output_form form="section-header" />
<div class="wrapper">
<div class="container">
<txp:output_form form="section-featured" />
<txp:output_form form="section-popular-posts" />
<txp:output_form form="section-main" />
<txp:output_form form="section-footer-homepage" />
</div>
</div><!-- Wrapper -->
<txp:output_form form="finish" />
section-main is now:
<section>
<div class="block white-box">
<div class="row">
<div class="col-md-8">
<txp:output_form form="subsection-topstories" />
<div class="gap"></div><!-- Gap -->
<txp:output_form form="subsection-latest" />
<div class="gap"></div><!-- Gap -->
<txp:output_form form="subsection-trending" />
<div class="gap"></div><!-- Gap -->
<txp:output_form form="subsection-mostviewed" />
<txp:output_form form="subsection-pagination" />
</div>
<txp:output_form form="subsection-sidebar" />
</div>
</div>
</section>
It takes a bit of work but I think it makes me a million times more manageable in the long run.
Offline
Re: Error i cant debug
Hi
The problem for me is solved (i changed the mysql field from text to mediumtext and used forms) but for txp community the question here is to give the freedom to choose how someone works, use forms or not should be a choice not an obligation?
That said it depends on technical limitations, if putting mediumtext increase sql time requests it s not good.
But maybe put the information about the limitation in the doc somewhere to let someone facing the same problem find easily the solution.
Cheers.
Offline
Re: Error i cant debug
Dragondz wrote #304037:
maybe put the information about the limitation in the doc somewhere to let someone facing the same problem find easily the solution.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: Error i cant debug
Offline