Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2017-02-14 12:08:54

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,926
Website GitHub

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

Bloke wrote #304023:

Or tell the template creators to stop writing such bloated code :-)

;-)

Offline

#15 2017-02-14 14:02:41

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,549
Website GitHub Twitter

Re: Error i cant debug

Bloke wrote #304023:

Or tell the template creators to stop writing such bloated code :-)

+1

Offline

#16 2017-02-14 15:14:43

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

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

#17 2017-02-15 07:06:35

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,549
Website GitHub Twitter

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

#18 2017-02-15 09:23:44

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,926
Website GitHub

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.

Like this?


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

#19 2017-02-15 13:34:06

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,549
Website GitHub Twitter

Re: Error i cant debug

Bloke wrote #304038:

Like this?

Good sire!

Offline

Board footer

Powered by FluxBB