Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#37 2015-01-15 22:45:16

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Minimum Theme for Textpattern

De nada!

Offline

#38 2022-12-22 08:37:46

dos
Member
From: de
Registered: 2014-05-17
Posts: 54
Website Mastodon

Re: Minimum Theme for Textpattern

I just did some digging for txp themes and found this – very well aged – one.

After a quick test run (latest version seems to be here), I noticed, that the search form is not working. Just getting a blank article as a result page. Maybe some TXP updates broke it? Here is the original code:

<form method="get" class="searchform" id="searchform" action="<txp:site_url />" role="search">
		<div>
			<label class="screen-reader-text" for="s"></label>
			<input type="text" class="search-input" name="q" id="s" />
			<input class="searchsubmit" type="submit" value="Search" />
		</div>
	</form>

Another thing, I’d like to give a try, is adding comments. Any hints, what’s the best way to do it?

Last edited by dos (2022-12-22 08:41:08)


“HaHa. Your medium is dying.” –Nelson Muntz, Springfield.

Offline

#39 2022-12-22 11:59:31

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,702
Website

Re: Minimum Theme for Textpattern

Oh, that’s quite old and I just saved it from oblivion by putting it on GitHub. It definitely needs reworking in more respects than just this.

You can find plenty of tips in the default theme, which is also documented with inline <!-- comments -->. You’ll have that already on your site but if you want to review it all in one place, the v4.8 default theme is on GitHub. Here are txp forms specific to comments and search results and the search_display and search_input forms are here.

Also check the tag documentation. For example, here are the overviews of comment tags and search_tags.


TXP Builders – finely-crafted code, design and txp

Offline

#40 2022-12-22 12:20:26

dos
Member
From: de
Registered: 2014-05-17
Posts: 54
Website Mastodon

Re: Minimum Theme for Textpattern

Thanks for the tip. The default theme might give me some ideas. What other issues did you notice?

My skills here are limited though, maybe someone can step-up and save that beauty from the dust?


“HaHa. Your medium is dying.” –Nelson Muntz, Springfield.

Offline

#41 2022-12-29 14:35:55

dos
Member
From: de
Registered: 2014-05-17
Posts: 54
Website Mastodon

Re: Minimum Theme for Textpattern

By the way: Jakob provided a quick fix for the search, available here.


“HaHa. Your medium is dying.” –Nelson Muntz, Springfield.

Offline

Board footer

Powered by FluxBB