Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-11-03 15:11:26

NikLP
Member
From: Nottingham
Registered: 2005-02-01
Posts: 43
Website

Article_custom based Site Map stopped working w/4.0.4?

Hi,

I could be wrong, but I think my site map (not google – one driven by article_custom) was working ok last week, but when I checked today (I’ve recently installed 4.0.4) it seems to stop halfway through?? This is pretty weird…

I’ve used a seperate Page for the site map, with the following:

The following is incorrect, please jump to third/fourth posts

<txp:article form="single_excerpt_disallowed"  listform="list_excerpt_allowed" />??

Nothing exciting there, I think you’ll agree – a straightforward customised page.

In the article, I’ve used a custom_article tag, thusly:

<txp:if_different>
<txp:section title="1" link="1" wraptag="h2" />
</txp:if_different>
<p class="sitemap"><txp:zem_link title="Permanent link to '%s'"><txp:title />
</txp:zem_link></p>

However, it just seems to stop halway thru the site map? The markup is all correct and there are no errors, and I’ve spent ages looking at it, but can’t see the problem. Which is annoying.

You can see this in action at http://www.kinetasystems.com/sitemap (unfinished site)
(It’s supposed to list all the articles in all the sections, FYI – at least allegedly)

Last edited by NikLP (2006-11-03 16:09:04)

Offline

#2 2006-11-03 15:44:43

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,012
Website GitHub Mastodon Twitter

Re: Article_custom based Site Map stopped working w/4.0.4?

Did you check this post? It might be of help


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2006-11-03 15:54:05

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Article_custom based Site Map stopped working w/4.0.4?

TXP’s article limit is 10, so you need to add limit="9999". listform is deprecated too. – try using:

<txp:if_article_list>
<txp:article_custom form="list_excerpt_allowed" limit="9999" />
<txp:else />
<txp:article form="list_excerpt_disallowed" limit="9999" />
</txp:if_article_list>

Though I’m not sure when you would have a single article in the sitemap. If that’s the case, just use <txp:article_custom form="list_excerpt_allowed" limit="9999" /> w/o if_article_list.

Offline

#4 2006-11-03 16:04:32

NikLP
Member
From: Nottingham
Registered: 2005-02-01
Posts: 43
Website

Re: Article_custom based Site Map stopped working w/4.0.4?

D’oh! I’m really sorry… I posted the incorrect page code in the original.

It should be:

<txp:article_custom sortby="Section,Title" sortdir="asc" 
status="live" form="custom_sitemap" allowoverride="0" />

“Custom_sitemap” is of course the name of the form – not “list_excerpt_disallowed” – Contents of that again here, for completion.

<txp:if_different>
<txp:section title="1" link="1" wraptag="h2" />
</txp:if_different>
<p class="sitemap"><txp:zem_link title="Permanent link to '%s'"><txp:title /></txp:zem_link></p>

@Colak – I read that post a while ago – that’s where this idea came from! ;)

Last edited by NikLP (2006-11-03 16:11:21)

Offline

#5 2006-11-03 16:14:49

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Article_custom based Site Map stopped working w/4.0.4?

Did you try adding limit="9999"? <txp:article_custom sortby="Section,Title" sortdir="asc" status="live" form="custom_sitemap" allowoverride="0" limit="9999" />

Offline

#6 2006-11-03 16:21:39

NikLP
Member
From: Nottingham
Registered: 2005-02-01
Posts: 43
Website

Re: Article_custom based Site Map stopped working w/4.0.4?

Well I will be God damned. That worked. I can’t see why it would though? None of my sections currently have more than three posts in?

Any ideas?! Would be nice to know what happened there!!

Thanks though! :)

Offline

#7 2006-11-04 01:54:54

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Article_custom based Site Map stopped working w/4.0.4?

Since you’re using article_custom without a section attribute, TXP takes all your live posts into account, which is >10. Article custom is section agnostic :).

Offline

#8 2006-11-09 23:41:51

NikLP
Member
From: Nottingham
Registered: 2005-02-01
Posts: 43
Website

Re: Article_custom based Site Map stopped working w/4.0.4?

AAH! Apologies, I wasn’t paying adequate attention it seems! Thanks… :)

Offline

Board footer

Powered by FluxBB