Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2015-01-04 10:47:57

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Minimum Theme for Textpattern

My mistake, it’s in the form search_results

Offline

#32 2015-01-15 13:09:45

txpwayoflife
Member
Registered: 2015-01-09
Posts: 16

Re: Minimum Theme for Textpattern

The comments form is only displayed in the “txp:permlink /”. Where can I put a link labeled “Comment” in the main page? This is what I am thinking about:

<a href=”<txp:permlink />”>Comments</a>

Last edited by txpwayoflife (2015-01-15 13:11:05)

Offline

#33 2015-01-15 13:39:41

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,316

Re: Minimum Theme for Textpattern

Hi Alexandre, great to have you back ;)
I’m not really experienced with comments but I know there’s a txp:comment_permlink tag, have you tried it? Maybe reading that page is a piece in the puzzle re your question.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#34 2015-01-15 14:48:38

txpwayoflife
Member
Registered: 2015-01-09
Posts: 16

Re: Minimum Theme for Textpattern

uli wrote #287429:

Hi Alexandre, great to have you back ;)

Thank you, Uli !

I will make some tests here using this piece of code.

Last edited by txpwayoflife (2015-01-15 14:56:12)

Offline

#35 2015-01-15 19:34:43

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

Re: Minimum Theme for Textpattern

I’m not sure how this theme is organised and what article forms are used, but in a default installation the tags that display the comments are only in the single article form, and not in the article_listing form. That’s why you don’t see them on an article list page. I guess that if you copy the comment tags from the single article form to the list form it will do what you want.

Offline

#36 2015-01-15 22:40:59

txpwayoflife
Member
Registered: 2015-01-09
Posts: 16

Re: Minimum Theme for Textpattern

Els wrote #287447:

I’m not sure how this theme is organised and what article forms are used, but in a default installation the tags that display the comments are only in the single article form, and not in the article_listing form. That’s why you don’t see them on an article list page. I guess that if you copy the comment tags from the single article form to the list form it will do what you want.

Hi again, Els!

I just wanna say a big THANK YOU, you are a very kind person !!!

Offline

#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: 58
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: 5,200
Website GitHub

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: 58
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: 58
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