Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#49 2020-05-26 15:17:55

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

Re: Duplicate Content due to section and article URL

colak wrote #323294:

As such, in demoncleaner’s site those names would not appear in the search results…

IIRC, pageless articles will appear in search results if their section is searchable. But you’ll have to care about their URL in search_form because theirs are invalid.

For example, search for Гамлет on my site will match a hidden article, but its URL is this of its ‘parent’.

Offline

#50 2020-05-26 17:27:34

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

Re: Duplicate Content due to section and article URL

etc wrote #323297:

IIRC, pageless articles will appear in search results if their section is searchable. But you’ll have to care about their URL in search_form because theirs are invalid.

For example, search for Гамлет on my site will match a hidden article, but its URL is this of its ‘parent’.

I guess that it works similarly to this?


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

Offline

#51 2020-05-26 17:33:58

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

Re: Duplicate Content due to section and article URL

colak wrote #323301:

I guess that it works similarly to this?

Yes, same idea, it tests for parent cf and points to the ‘parent’ article when there is one.

Mass-headless sections are in dev branch now. Just note that for development version empty page/style mean ‘the same as live’, not necessary empty. That’s too cumbersome to change.

Offline

#52 2020-05-26 17:57:09

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,250
Website GitHub

Re: Duplicate Content due to section and article URL

etc wrote #323293:

While confusing, it is useful because a section can be pageless in live mode but accessible in dev mode.

Ah yes, good thinking. Forgot about that.

etc wrote #323304:

Mass-headless sections are in dev branch now. Just note that for development version empty page/style mean ‘the same as live’, not necessary empty.

And that’s important to note too. We should check the theme docs and ensure that’s represented when 4.8.1 is released.

Nice work on the multi-assign ‘none’ there, thank you, Oleg.


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

#53 2020-05-27 05:16:11

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

Re: Duplicate Content due to section and article URL

It is indeed great! and I already thought of some cases that it would be extremely useful.


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

Offline

#54 2020-05-27 20:35:04

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,578
Website

Re: Duplicate Content due to section and article URL

etc wrote #323216:

In 4.8 we have global $txp_sections:

array (...

So $txp_sections[$thissection['name']]['page'] should work.

Thank you Oleg. That was very helpful!


TXP Builders – finely-crafted code, design and txp

Offline

#55 2020-05-29 14:28:58

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: Duplicate Content due to section and article URL

Struggling to get my head round duplicate content. If I have a simple blog with say, 5 articles, their title and excerpts appear in the Articles list. Now it just so happens that these 5 articles all have 2 categories and one category X is common to all the articles. So when I go to the Category X list, I have the same content as the Articles list, except for the title of the page and the URLs.

Does that count as duplicate content? If I use noindex, follow on one or both pages, will the problem go away? Thanks.


BB6 Band My band
Gud One My blog

Offline

Board footer

Powered by FluxBB