Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-02-21 17:03:38
- boyandin
- Member
- Registered: 2005-09-16
- Posts: 21
Attribute to perform regexp filtering
Greetings,
I am totally impressed with TP and had many a site to use it and perhaps will advise to many a person in the future.
There are many useful add-ons that could be useful. Myself, I miss a capability to filter by regexp. It could be quite useful in every case when section/category name are used. An additional attribute could be very convenient, say -
<code>
<article-custom sectionmatch=”/en-.*?-2005/” />
</code>
to match sections named “en-news-2005”, “en-dev-2005” etc.
If it has already been implemented, I would be very gald to know…
Thank you!
Konstantin
Om gate gate paragate parasamgate bodhi svaha
Offline
Re: Attribute to perform regexp filtering
If I’m not mistaken, attributes like this one are pass on to MySQL with no edit. Maybe there’s a lead here.
Or you could copy/paste the article_custom code into a new plugin, and edit it slightly to allow a SELECT REGEXP
sql query.
Offline