Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2010-08-17 00:59:43

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

Re: List of articles troubleshooting

It shows the body text when you’re on an article list. It should be accompanied by a title tag, maybe?

I think reading tags were easier for you with proper indentation, like so:

<txp:if_article_list>
	<txp:if_excerpt>
		<h3 class="entry-title">
			<txp:permlink>
				<txp:title />
			</txp:permlink>
		</h3>
		<txp:excerpt />
		<p class="read-more">
		<a href="<txp:permlink />#body" title="<txp:title />">» Read more</a>
		</p>
	<txp:else />
		<txp:body />
	</txp:if_excerpt>
<txp:else />
	<p><a href="http://www.marccarson.com/site">Home</a> > <a href="http://www.marccarson.com/site/articles/">Articles</a></p>
	<h1 class="entry-title">
		<txp:permlink>
			<txp:title />
		</txp:permlink>
	</h1>
	<txp:body />
</txp:if_article_list>

Umm … well at least the important if/else parts are properly indented.

Last edited by uli (2010-08-17 01:02:11)


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

Offline

#14 2010-08-17 01:01:46

maruchan
Member
From: Ukiah, California
Registered: 2010-06-12
Posts: 596
Website

Re: List of articles troubleshooting

It’s not showing body text in the article list right now, just excerpts (which is how I want it). That’s why I’m wondering if it’s necessary. It looks kind of redundant but I’m not good at parsing this code.

Offline

#15 2010-08-17 01:02:30

maruchan
Member
From: Ukiah, California
Registered: 2010-06-12
Posts: 596
Website

Re: List of articles troubleshooting

Oh, I see…it’s showing body text only if the article doesn’t have an excerpt, right? That makes sense….

Offline

Board footer

Powered by FluxBB