Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Duplicate Content due to section and article URL
colak wrote #323290:
What is confusing is the url article pattern for the none section.
We could omit that from the Section list if the section is pageless. Just display a dash.
It would, however, appear on the Edit panel for now, unless we decide that adding a few lines of JS to the Sections panel is worth it to hide the URL pattern if the Page dropdown is switched to ‘none’ (and all the additional hassle that entails when the form is submitted without a value for that field in the payload).
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
Offline
Re: Duplicate Content due to section and article URL
That is excellent. I tested it briefly in the demo site. Another issue, which I raised before, is the question of search results.
I would expect headless sections to work in some way like editable by writers forms. That is, if someone wants to have the bios on a section’s front page, as discussed by demoncleaner in this thread, a none section would be the appropriate way to do it in order to avoid duplicated content. In larger sites however, a lot of the content is only accessible via searches. As such, in demoncleaner’s site those names would not appear in the search results…
I’m still thinking about uses but also problems for 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
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
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_formbecause 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
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
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
developmentversion 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.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
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
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
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.
Dozy P My attempt at music
Offline