Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2020-07-11 17:43:37

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 1,668
Website

missing articles ID

I don’t think i have found anyone having posted having this issue heretofore….
But i have just discovered that i have a missing article number :

I checked the DB and there is no #121 there

I wonder what is going on.

the only issue is that when one goes <Previsous:Next> it fails to find artlce

See the issue from this Page :

try going to the left << Random Bikes – Musette Caffè

everything is bollocks in termz of Prev Next linkages.

Like having dirt in the chain. ;-)


…. texted postive

Offline

#2 2020-07-11 18:05:15

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 8,159
Website

Re: missing articles ID

You wouldn’t have deleted it for some reason?


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | NeMe @ github | Covid-19; a resource
I do my best editing after I click on the submit button.

Offline

#3 2020-07-11 22:43:49

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 1,668
Website

Re: missing articles ID

colak wrote #324431:

You wouldn’t have deleted it for some reason?

That i don’t know.

i notice that the paging works as it should …. it goes to all articles in a group of three.
BUT if you go prev / next it’s showing titles but not the correct article

And what if ID 21 was deleted. why do the titles of previous articles show correctly but dont get displayed? would that be a bug?!

EDIT: I have checked some past entries. I deleted article id 89. And if I go to the previous article 91 and use the PREVIOUS button to go back it gets confused at where 89 should appear.

Does this mean we are never allowed to delete an entry?

Last edited by bici (2020-07-11 22:56:35)


…. texted postive

Offline

#4 2020-07-11 22:48:52

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,637
Website

Re: missing articles ID

You wouldn’t happen to be using this code in your next/prev would you:

<txp:link_to_prev><txp:prev_title /></txp:link_to_prev>
<txp:link_to_next><txp:next_title /></txp:link_to_next>

If so, you need to change it to this:

<txp:link_to_prev><txp:title /></txp:link_to_prev>
<txp:link_to_next><txp:title /></txp:link_to_next>

Explanation: Link to next/prev will automatically load the next or previous article into their respective containers. So you need to display the current (automatically loaded) <txp:title /> inside their containers. If you use <txp:next_title/> for example, you’re telling Txp to display the next-next article title; essentially skipping one.

Last edited by Bloke (2020-07-11 22:51:31)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#5 2020-07-11 23:50:46

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 1,668
Website

Re: missing articles ID

hmmm:

In artilce_form i have

<txp:if_article_list>
	<p>
	<txp:older> Previous </txp:older>
	<txp:newer> Next </txp:newer>
	</p>
	</txp:if_article_list>

In Page i did have what you suspected :
<txp:article form="Single" /> <!-- ===== Single FORM  ==== -->
<txp:if_individual_article>
<<  <txp:link_to_prev><txp:prev_title /> </txp:link_to_prev> |
<txp:link_to_next><txp:next_title /> </txp:link_to_next> >>
</txp:if_individual_article> 

So i did as per you suggestion and there still is an error as Titles and actual Article don’t match.

<<  <txp:link_to_prev><txp:title /></txp:link_to_prev> |
<txp:link_to_next><txp:title /></txp:link_to_next> >>

and there still is an error as Titles and actual Article don’t match. see Prev ? Next from this page

Last edited by bici (2020-07-11 23:53:16)


…. texted postive

Offline

#6 2020-07-12 00:47:19

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,637
Website

Re: missing articles ID

bici wrote #324436:

there still is an error as Titles and actual Article don’t match.

They do if you force refresh the pages. It’s your server cache getting in the way.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#7 2020-07-12 03:07:35

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 1,668
Website

Re: missing articles ID

Bloke wrote #324437:

They do if you force refresh the pages. It’s your server cache getting in the way.

drats!! always forget to empty cache.

Many, Many, thanks for your guidance and help. All is well in bici land now


…. texted postive

Offline

Board footer

Powered by FluxBB