Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2015-01-16 08:07:07

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

supress warnings on certain url scemas

When using url schemas which include the article id I do not think that we should have the warning about duplicate titles. Would the suppression of the warning for those schemas be possible?


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

Offline

#2 2015-01-16 08:48:34

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: supress warnings on certain url scemas

Which percentage of users ever decides to switch the URL-scheme to one that doesn’t include the ID?

What happens if you call domain.com/section/article_title when that title appears more than once (without checking I suspect only the first found article is shown)?

Instead of a warning, shouldn’t this be an error for non-ID URL-scheme and not shown at all for ID URL-schemes… combined with a check for duplicate titles when switching from ID to non-ID URL schemes?

Offline

#3 2015-01-16 09:27:03

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

Re: supress warnings on certain url scemas

ruud wrote #287470:

… shouldn’t this be an error for non-ID URL-scheme and not shown at all for ID URL-schemes… combined with a check for duplicate titles when switching from ID to non-ID URL schemes?

That would be great!!!!


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

Offline

#4 2015-01-16 09:44:33

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: supress warnings on certain url scemas

ruud wrote #287470:

Instead of a warning, shouldn’t this be an error for non-ID URL-scheme

I don’t think so. I for instance use articles as content entities with no publicly visible URL (think slider items, sidebar partials and the like). On such occasions it doesn’t matter whether the article url is not unique.

Offline

#5 2015-01-16 11:33:35

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

Re: supress warnings on certain url scemas

So, what if the warning remains for non id based schemes and is suppressed for the ones which use the id? … Which was my initial – be a non totally thought about – idea.


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

Offline

#6 2015-03-16 13:22:23

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,260
GitHub

Re: supress warnings on certain url scemas

colak wrote #287468:

Would the suppression of the warning for those schemas be possible?

Would an admin-side CSS override work for hiding the warning? Something like visibility: hidden; on #messagepane span.warning, perhaps. Restricting it to just warnings might be doable. This is what 4.5.7 shows:

<div id="messagepane"><span id="message" class="warning" style="display: block;">Article posted. The same URL-only title is used by 2 different articles. <a href="#close" class="close">×</a></span></div>

Can a plugin change admin-side CSS, or is that outside of scope?

Last edited by gaekwad (2015-03-16 13:22:35)

Offline

#7 2015-03-16 13:53:35

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

Re: supress warnings on certain url scemas

Sightly OT, but I remember having written a plugin avoiding identical url titles.

gaekwad wrote #289114:

Can a plugin change admin-side CSS, or is that outside of scope?

Yes, it’s easy for a plugin to inject some css.

Offline

Board footer

Powered by FluxBB