Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-10-10 18:39:31

dreamer
Member
Registered: 2007-06-08
Posts: 242

Trying to limit blog entries to a page.

This is my first try at Textpattern and I’m a bit anxious but in a good way as I’ve heard great things about it. I definitely need to finish this site up for a client in a couple of days but I have a couple of stumbling blocks. Here is the issue;

On this page;
http://sachistudio.com/txp/Jacks-Blog

I need to avoid the duplicate blog entries that are showing up.

I created the following code for my Page. I know it has something to do with the offset attribute, but don’t know what;

<txp:article_custom author=“thinksachi” excerpted=“1” form=“metablog_page” limit=“4” offset=“3” pgonly=“0” section=“Jacks-Blog” sort=“Posted desc” status=“4” />

The second issue is that when you click on the blog entry to read the entire thing like so;
http://sachistudio.com/txp/Jacks-Blog/39/this-is-another-blog-entry-from-jacks-blog

The other blog entries follow below it. I just want the single blog entry to show up along with the comment form. What am I doing wrong in my code?

The form that I created for that looks like this;

<h1><txp:permlink><txp:title /></txp:permlink></h1>

<div class=“metadata”>

<p class=“posted”>Date: <span class=“date”><txp:posted /></span><span class=“Comment”>Comments: </span><span class=“commentnumber”><txp:comments_count /></span></p>

</div><!— end metadata—>

<txp:excerpt />

Last edited by dreamer (2007-10-10 18:40:04)

Offline

#2 2007-10-10 19:43:20

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: Trying to limit blog entries to a page.

You have to use txp:article (it’s context sensitive) and not txp:article_custom (not context-sensitive).


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#3 2007-10-10 20:21:02

dreamer
Member
Registered: 2007-06-08
Posts: 242

Re: Trying to limit blog entries to a page.

Ok. This makes sense a bit. But I still can’t seem to get only the excerpt to show up on.

http://sachistudio.com/txp/jacks-blog

Instead, I’m getting the entire blog entries to show up. I was using the article output tag builder and I noticed that the customer custom list builder only allows excerpt and the single list tag builder doesn’t allow excerpt. Is this true?

Offline

#4 2007-10-10 20:27:46

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: Trying to limit blog entries to a page.

I’m not sure if I understand what you are asking but the following FAQ (and many other on the TxP FAQ page) may be helpful:

how do I show only an excerpt in article lists?


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB