Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#41 2020-05-25 12:29:56

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

Re: Duplicate Content due to section and article URL

I’ve tried to create a page named * and txp did not allow me, so it looks safe. Will do.

Offline

#42 2020-05-25 16:41:54

hilaryaq
Plugin Author
Registered: 2006-08-20
Posts: 265
Website

Re: Duplicate Content due to section and article URL

I appreciate ye so much.

The TXP community is the MOST helpful, bar none.


…………………
I <3 txp
…………………

Offline

#43 2020-05-26 12:33:08

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

Re: Duplicate Content due to section and article URL

hilaryaq wrote #323260:

The TXP community is the MOST helpful, bar none.

The result of some natural selection :-)

Is * in page and style select boxes clear enough to say ‘leave it as is’? I wouldn’t like to introduce new strings.

Offline

#44 2020-05-26 14:11:44

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,481
Website

Re: Duplicate Content due to section and article URL

etc wrote #323286:

Is * in page and style select boxes clear enough to say ‘leave it as is’?

I think so, yes. Since * is often used as a wildcard that means ‘anything that matches’, it makes sense in this case that we’re setting the new page/style to ‘anything that matches’, i.e. whatever’s already assigned.


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

#45 2020-05-26 14:31:35

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 8,018
Website

Re: Duplicate Content due to section and article URL

What is confusing is the url article pattern for the none section.


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

#46 2020-05-26 14:37:54

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,481
Website

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.

Txp Builders – finely-crafted code, design and Txp

Offline

#47 2020-05-26 15:05:11

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

Re: Duplicate Content due to section and article URL

colak wrote #323290:

What is confusing is the url article pattern for the none section.

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

Offline

#48 2020-05-26 15:08:07

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 8,018
Website

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

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

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

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

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

Board footer

Powered by FluxBB