Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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,559
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: 12,513
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.

Hire 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,559
Website GitHub Twitter

Re: Error i cant debug

Bloke wrote #304038:

Like this?

Good sire!

Offline

Board footer

Powered by FluxBB