Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

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

etc
Developer
Registered: 2010-11-11
Posts: 3,702
Website

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: 9,481
Website

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: 8,018
Website

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.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

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

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 3,853
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,260
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.


Wondrous Healing Wondrous ways to a healthy old age
Safe Reiki Harmless natural healing.

Offline

Board footer

Powered by FluxBB