Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-04-06 13:36:00

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Previous and Next navigation Summary links

Using this code:

<txp:output_form form="header" />
<txp:if_search>
<h3>Risultati della ricerca</h3>
<ul>
<txp:article />
</ul>
<p><txp:search_result_count />.</p>
<txp:else />
<txp:article listform="Sommario" />
</txp:if_search>
<txp:if_article_list>
<p class="next-page"><txp:older>&laquo; Articoli precedenti</txp:older> | <txp:newer>Articoli successivi &raquo;</txp:newer></p>
</txp:if_article_list>
<br>
<txp:output_form form="sidebar" />
<txp:output_form form="footer" />

in my homepage appear a list of articles but doesn’t appear the previous (articoli precedenti) and later (Articoli successivi) articles list. I can’t find the error. What I need is that the summary (sommario) of articles showing the excerpts only appear in the homepage and, with “previous” and “next” buttons appears the previous and next summary list (not the previous and next article! This I’d like thatwould appear clicking the same buttons but when I’m showing it as full article, not as an excertps in the summary).

Home someone undestand… :P

Offline

#2 2007-04-06 15:56:37

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

Re: Previous and Next navigation Summary links

FAQ

Offline

#3 2007-04-06 16:18:11

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: Previous and Next navigation Summary links

Already read the FAQ.

Using:

<txp:link_to_prev showalways=“1”>Articolo precedente</txp:link_to_prev>
<txp:link_to_next showalways=“1”>Articolo successivo</txp:link_to_next>

I manage to navigate between the previous and next articles of the same section BUT what I need is a method to navigate between the pages of the summary. Is that possible?

Checked the manual and tried this with no results:

<txp:output_form form="header" />
<txp:if_search>
<h3>Risultati della ricerca</h3>
<ul>
<txp:article />
</ul>
<p><txp:search_result_count />.</p>
<txp:else />
<txp:if_individual_article>
<txp:article limit="1" form="ArticoloSingolo" />
<p>
<txp:link_to_prev><txp:prev_title /></txp:link_to_prev>
<txp:link_to_next><txp:next_title /></txp:link_to_next>
</p>
</txp:if_individual_article>
<txp:if_article_list>
<txp:article_custom form="Sommario" sortby="posted" sortdir="desc" limit="10" />
<p class="next-page">
<txp:older>&laquo; Pag. precedente</txp:older> | <txp:newer>Pag. successiva &raquo;</txp:newer>
<br>
</p>
</txp:if_article_list>
</txp:if_search>
<br>
<txp:output_form form="sidebar" />
<txp:output_form form="footer" />

As you see I don’t use article custom.

Offline

#4 2007-04-06 17:18:53

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

Re: Previous and Next navigation Summary links

Already read the FAQ.

So did you check the tag trace? You didn’t post it here.

As you see I don’t use article custom.

I don’t understand where you’re going with this, because now your example does use article_custom, which doesn’t work with older and newer.

I think you’d better backup and re-describe 1) what you want to happen and 2) what is (not) happening instead.

Offline

#5 2007-04-15 09:38:50

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: Previous and Next navigation Summary links

Oops I posted the old code! :P
Anyway: if I can’t use the article_custom to get this but if I need the article_custom to get the excerpt how can I do?

In definitive: I would need a first page (Summary) with the excerpt of the latest (10 as enough) articles: If someone wants to read the full story clicks on “Leggi tutto…”, AND I would like the navigation links to the “first” and “previous” PAGES of the summary (always showing the excerpts, not the full stories).

Is it possible to get this or must I put in homepage the full stories and use the txp:older and txp:newer?

Here it is my latest code:

<txp:output_form form="header" />
<txp:if_search>
<h3>Risultati della ricerca</h3>
<ul>
<txp:article />
</ul>
<p><txp:search_result_count />.</p>
<txp:else />
<txp:if_individual_article>
<txp:article limit="1" form="ArticoloSingolo" />
<p>
<txp:link_to_prev><txp:prev_title /></txp:link_to_prev>
<txp:link_to_next><txp:next_title /></txp:link_to_next>
</p>
</txp:if_individual_article>
<txp:if_article_list>
<txp:article form="Sommario" sortby="posted" sortdir="desc" limit="10" />
<p class="next-page">
<txp:older>&laquo; Pag. precedente</txp:older> | <txp:newer>Pag. successiva &raquo;</txp:newer>
<br>
</p>
</txp:if_article_list>
</txp:if_search>
<br>
<txp:output_form form="sidebar" />
<txp:output_form form="footer" />

Last edited by candyman (2007-04-15 09:44:04)

Offline

#6 2007-04-17 00:21:47

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

Re: Previous and Next navigation Summary links

Tag trace? You still haven’t posted it.

Anyway: if I can’t use the article_custom to get this but if I need the article_custom to get the excerpt how can I do?

You don’t need to use article_custom to display article excerpts. Why would you think that?

Offline

#7 2007-04-25 09:04:45

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: Previous and Next navigation Summary links

Mary wrote:

You don’t need to use article_custom to display article excerpts. Why would you think that?

This is my problem. I’d like to have, in the first page, only the list of excerpts (a sort of index of contents) of the articles and, at the bottom, the possibility to see the previuos and next index pages. The, when the reader found the article he wants to read, can click on “Read more” (Leggi tutto) and read the full story. Then, I could put in the default article form the excerpt and in a custom form the full article BUT there’s a problem: I have also a custom form for the review (that have rating stars, missing in the defualt article form). Hope you understand.

Mary wrote:

Tag trace? You still haven’t posted it.

I send the HUGE tag_trace to you by mail: hope it’s okay.

Thanks for the help, of course.

Last edited by candyman (2007-04-25 09:05:41)

Offline

#8 2007-04-26 03:44:01

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

Re: Previous and Next navigation Summary links

Okay, so I take it only some of these articles will use the rating form? or will most of them use it while some will not? It sounds like you want to make use of Textpattern’s override form feature.

Offline

#9 2007-04-27 14:37:20

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: Previous and Next navigation Summary links

I already use this feature, choosing the “review” (Recensione) form for few articles about cinema.
But the problem is displaying the list of excerpts (of different forms) only.

Offline

#10 2007-05-01 17:53:26

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: Previous and Next navigation Summary links

Anyone can help me to get a list of excerpts with the possibility to navigate between previus and next lists of excerpts?

Offline

#11 2007-06-25 22:56:58

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: Previous and Next navigation Summary links

I’m going crazy. After months I can’t find a solution.
Where can I find an exemple forms which presents at the same time the navigation between older and never articles AND the excerpt (read more…) function?

I mean something like this

… maybe with the first article of the list (the latest published) shown enterely.

Hope someone can showhing me a running code for my blog that doesn’t shows the previous and next articles navigation links even if I specified them.

Thanks in advance.

Last edited by candyman (2007-06-25 23:00:22)

Offline

#12 2007-06-27 02:48:36

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

Re: Previous and Next navigation Summary links

Offline

Board footer

Powered by FluxBB