Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#16 2008-10-30 15:52:16
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Messy Structure
driz wrote:
But why are we even seeing the page at all and NOT a 404 like you say?
Because the article does exist, even though it is not displayed. I also have section pages that are only meant to be article lists, and I’m using Kevin’s way, a redirect in .htaccess. I find nothing wrong with that.
Offline
Re: Messy Structure
Okay, I mis-spoke.
I don’t see a 404 page using my template on my own site. I see a page with no article content. But that page isn’t linked from anywhere, so I don’t care— who will ever see it but me?
Offline
Re: Messy Structure
Yeh but it’s still their, and that’s just annoying :)
I think the only REAL solution here is to make all sticky articles excerpts and have them show the full article link, that way you dont get blank pages.
Question though, even though the article is sticky and I have NO comment tags in the form, it is showing the comments box? How do I stop this? Merely saying NO in the article write still shows Comments have been disabled. I want nothing at all. x
Last edited by driz (2008-10-30 16:07:03)
~ Cameron
Offline
#19 2008-10-30 16:21:54
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Messy Structure
In Admin > Preferences, set ‘Automatically append comments to articles’ to ‘no’.
Offline
#20 2008-10-30 18:28:05
- masa
- Member
- From: North Wales, UK
- Registered: 2005-11-25
- Posts: 1,095
Re: Messy Structure
maniqui wrote:
Finally, an interesting read: demystifying duplicate content penalty
Thanks for posting that link. It seems they’re well aware of the problem and that the kind of duplication discussed here shouldn’t cause any problems:
This type of non-malicious duplication is fairly common, especially since many CMSs don’t handle this well by default.
and…
When we detect duplicate content, such as through variations caused by URL parameters, we group the duplicate URLs into one cluster.
I have noticed that google does find the links to individual articles easily – even though they’re nowhere linked directly – by simply submitting searches on the site.
Offline
Re: Messy Structure
masa wrote:
I have noticed that google does find the links to individual articles easily – even though they’re nowhere linked directly – by simply submitting searches on the site.
Did you mean that the Google has indexed unlinked individual pages on your sites? Guess that answers my question of who would ever find these pages. Thanks.
Offline
#22 2008-10-30 19:19:18
- masa
- Member
- From: North Wales, UK
- Registered: 2005-11-25
- Posts: 1,095
Re: Messy Structure
johnstephens wrote:
Did you mean that the Google has indexed unlinked individual pages on your sites?
Yes, if you offer a search function on your site, google will pick random terms from the page it’s currently spidering and submit these in the search form to reveal what they refer to as deeply-nested content.
Offline
Re: Messy Structure
Google, you rascal!
Is there a tag or plugin that tests for sticky status? Then you could just put in a meta robots tag that says “no-index.” <txp:if_status won’t work— it refers to http status codes.
Offline
Re: Messy Structure
You shouldn’t have to do all this though, adding robots tags and etc. Txp should have a nicer way of dealing with things!
~ Cameron
Offline
#25 2008-10-31 20:03:03
- masa
- Member
- From: North Wales, UK
- Registered: 2005-11-25
- Posts: 1,095
Re: Messy Structure
BTW here’s google’s official explanation
Offline
#26 2008-10-31 20:46:34
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Messy Structure
If you want the article page to return a 404, you could do this:
<txp:if_individual_article>
<txp:if_article_id id="123">
<txp:txp_die status="404" />
</txp:if_article_id>
</txp_if_individual_article>
(edited: typo. Thanks Jukka!)
Last edited by els (2008-10-31 21:28:12)
Offline
Re: Messy Structure
Els wrote:
If you want the article page to return a 404, you could do…
No, there is typo in your code, Els.
It’s <txp:txp_die />, not <txp:die />.
Reason: die() is already registered function by PHP, so Textpattern uses txp_die(). (That is the most common typo made in TXP-tag tutorials – even official FAQs and tag lists used to use die instead of txp_die).
Last edited by Gocom (2008-10-31 21:07:43)
Offline
#28 2008-10-31 21:27:23
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Messy Structure
Thanks Jukka, edited my post above.
Offline
Re: Messy Structure
Els wrote:
<txp:if_individual_article>
<txp:if_article_id id="123">
<txp:txp_die status="404" />
</txp:if_article_id>
</txp_if_individual_article>
This could be very useful for the right situation. Thanks!
I’m wary of using this as a standard for “static” pages. Seems like something that should be mentioned in the static page FAQ if the content is indeed duplicated. On the other hand, I tried searching for terms that are unique to my sticky pages in Textpattern’s search, and nothing came up.
I reckon that’s due to not using the stearchsticky attribute.
Offline
Re: Messy Structure
johnstephens wrote:
Is there a tag or plugin that tests for sticky status? Then you could just put in a meta robots tag that says “no-index.”
<txp:if_statuswon’t work— it refers to http status codes.
Nice.
Offline