Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2019-04-18 12:15:56

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

Re: Can I narrow searches to only articles with certain tags?

philwareham wrote #317682:

If my custom field (called target) was say filled with:

4.7, 4.6, 4.5...

Then would that work somehow?

Yes, but you’d need to eventually add 4.8 etc when released. For every working plugin…


etc_[ query | search | pagination | date | tree | cache ]

Offline

#12 2019-04-18 12:23:39

philwareham
Core designer
From: Farnham, Surrey, UK
Registered: 2009-06-11
Posts: 3,175
Website

Re: Can I narrow searches to only articles with certain tags?

Oh, of course 🤔 – but then again plugins would need to be individually verified against new Textpattern releases anyway so maybe that isn’t such a big problem.

The best route would be to do as you suggest though, and assume plugins are compatible with new releases unless we tag them as not compatible. Less work to maintain.

I think it’s pretty important that the new plugins site lists a plugin’s compatibility and searches can be filtered by Textpattern version you are using.

Not sure how to proceed. This is proving more complex that I had originally thought!

A lot if this transfers to the planned themes website too, as the plugins and themes sites share a lot of common code.

Offline

#13 2019-04-18 12:33:26

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

Re: Can I narrow searches to only articles with certain tags?

In some plugins I use 4.5..4.7 to say “between 4.5 and 4.7”. I don’t think someone ever needs to search for .. in a custom field, so we could adopt it in core. In your case we could use min-version and max-version cf and transform target=4.6 query into

min-version='..<txp:page_url type="target" />'
    max-version='<txp:page_url type="target" />..'

etc_[ query | search | pagination | date | tree | cache ]

Offline

#14 2019-04-18 12:47:09

philwareham
Core designer
From: Farnham, Surrey, UK
Registered: 2009-06-11
Posts: 3,175
Website

Re: Can I narrow searches to only articles with certain tags?

Ok that sounds good. And if max-version is blank then it assumes that plugin is still compatible (no max version limit).

Offline

#15 2019-04-18 13:40:44

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 7,152
Website

Re: Can I narrow searches to only articles with certain tags?

What happens if somebody has an older install? Will links to previous versions of plugins be available?


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | Respbublika! | NeMe @ github

Offline

#16 2019-04-18 14:09:21

philwareham
Core designer
From: Farnham, Surrey, UK
Registered: 2009-06-11
Posts: 3,175
Website

Re: Can I narrow searches to only articles with certain tags?

colak wrote #317688:

What happens if somebody has an older install? Will links to previous versions of plugins be available?

Hopefully, yes. Not got that far into the developments yet but should be.

Offline

Board footer

Powered by FluxBB