Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » article_custom

#1 2006-08-25 03:09:11

progre55
Member
Registered: 2006-05-02
Posts: 668

article_custom

I attempted to add the txp:newer and txp older to the following code, under the article_custom tag, but it did not work. Nothing showed up. Not sure if I am missing something. The only “unusual thing” about this code is that it is using a custom field to sort.

<code><txp:if_article_list>

<txp:if_category>

<txp:article sortby=“custom_7” />

<txp:else />

<txp:article_custom category=“Property” form=“default” sortby=“custom_7” Limit=“6” />

</txp:if_category>

</txp:if_article_list></code>

Any assistance would be appreciated.

Thanks.

Progre55

Last edited by progre55 (2006-08-25 03:09:54)

Offline

#2 2006-08-25 04:22:47

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: article_custom

I do notice that you are using a capital “L” for “limit” which would be incorrect.

older and newer do not work with article_custom because it does not work like article does, it is not context-sensitive (are we on another page? a category page? a search?).

Last edited by Mary (2006-08-25 04:23:00)

Offline

#3 2006-08-25 12:07:47

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: article_custom

Mary:

I thought it was next and previous that do not work with article_custom … Textbook tells me to use older and newer ….

progre55

Offline

#4 2006-08-26 01:07:14

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: article_custom

article_custom would never display only one article, so of course next and previous wouldn’t work. Neither does older and newer.

Offline

#5 2006-08-28 15:52:03

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: article_custom

Mary:

Then using my original code below:

<code><txp:if_article_list>
<txp:if_category>

<txp:article sortby=“custom_7” />

<txp:else />

<txp:article_custom category=“Property” form=“default” sortby=“custom_7” Limit=“6” />

</txp:if_category>

</txp:if_article_list></code>

I am stumped on how can I show the additional articles in the category Property? All I am looking to do is have six (6) appear on a page rather than a long laundry list … with the capability to hit a button to see the next six (6) and so on and so on …

Thanks.

progre55

Last edited by progre55 (2006-08-28 15:52:58)

Offline

#6 2006-08-29 01:58:19

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: article_custom

Your tags versus your explanation has me somewhat confused. Can you elaborate on the behaviour you’re after (category list versus regular list, etc)?

Offline

#7 2006-08-29 03:28:31

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: article_custom

Mary:

Sorry, for the confusion.

Currently I have a gallery page which consists of articles from a category called Property. The Gallery page contains the article image, several custom fields and the ability for the viewer to see the complete article. Right now the Gallery page has over 30 listings, which is too many for one page.

What I want is for this list to be limited to six articles with the capability of the visitor to page through the remaining articles 6 at a time. What I was attempting to do is add buttons on the bottom to allow this …

I hope this is a better explanation.

progre55

Offline

#8 2006-08-31 12:56:47

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: article_custom

Mary:

After looking all through the post, I have found the root of the problem

  • Index » How Do I…? & Other Questions » <<previous – next>> for my “archive” page (link)

Plainly rr_thumbpops is the culprit … i think …

Unfortunately, now I am searching for the solution

Offline

#9 2006-09-01 02:17:53

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: article_custom

After looking all through the post, I have found the root of the problem… Plainly rr_thumbpops is the culprit… i think…

‘fraid not. article_custom will never display pagination links. You’ll need to use a plugin like chh_article_custom to do that.

Offline

  1. Index
  2. » Archives
  3. » article_custom

Board footer

Powered by FluxBB