Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#37 2020-05-25 11:02:48

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

Re: Duplicate Content due to section and article URL

We could probably add None option to the multi-edit widget?

Offline

#38 2020-05-25 12:16:49

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 #323235:

We could probably add None option to the multi-edit widget?

That would work. As long as the dropdowns are consistent between “None” (pageless) and “leave alone” on list and edit steps.

If we just label the value="" as None on the edit step, how do we handle leave_blank on the section list step? They’d both have value="" right?


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

#39 2020-05-25 12:22:12

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

Re: Duplicate Content due to section and article URL

Bloke wrote #323239:

If we just label the value="" as None on the edit step, how do we handle leave_blank on the section list step? They’d both have value="" right?

We could give another value, e.g. * to leave it alone?

Offline

#40 2020-05-25 12:24:07

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 #323246:

We could give another value, e.g. * to leave it alone?

That’d work. This could sneak into 4.8.1 as it’s not too invasive and is an enhancement/bug fix to the theme changes. If you have time :)


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

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

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

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: 335
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: 5,028
Website GitHub

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: 11,250
Website GitHub

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: 9,007
Website GitHub Mastodon Twitter

Re: Duplicate Content due to section and article URL

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


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
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: 11,250
Website GitHub

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: 5,028
Website GitHub

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: 9,007
Website GitHub Mastodon Twitter

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

Board footer

Powered by FluxBB