Filelist and folderlist parameter - allow regexp subpattern

Locked
RoscoHead
Joomla! Explorer
Joomla! Explorer
Posts: 318
Joined: Mon Jul 30, 2007 11:01 pm
Location: Melbourne, Australia
Contact:

Filelist and folderlist parameter - allow regexp subpattern

Post by RoscoHead » Mon Jan 14, 2008 8:17 pm

I would like the filelist and folderlist parameter elements to be able to accept something like "blah_(.*)\.php" in the filter attribute and have the list populated with the first matched subpattern instead of the whole file/folder name.

ROSCO

User avatar
masterchief
Joomla! Hero
Joomla! Hero
Posts: 2316
Joined: Fri Aug 12, 2005 2:45 am
Location: Brisbane, Australia
Contact:

Re: Filelist and folderlist parameter - allow regexp subpattern

Post by masterchief » Mon Jan 14, 2008 8:45 pm

Try the argument

filter="blah_(.*)\.php"

It accepts a regex.
Andrew Eddie - Tweet @AndrewEddie
<><
http://eddify.me
http://www.kiva.org/team/joomla - Got Joomla for free? Pay it forward and help fight poverty.

RoscoHead
Joomla! Explorer
Joomla! Explorer
Posts: 318
Joined: Mon Jul 30, 2007 11:01 pm
Location: Melbourne, Australia
Contact:

Re: Filelist and folderlist parameter - allow regexp subpattern

Post by RoscoHead » Mon Jan 14, 2008 8:52 pm

Yep, but in the generated list it includes the complete filename. I would like it to include only the the portion of the filename that matches the first parenthesised subpattern.

ROSCO

User avatar
masterchief
Joomla! Hero
Joomla! Hero
Posts: 2316
Joined: Fri Aug 12, 2005 2:45 am
Location: Brisbane, Australia
Contact:

Re: Filelist and folderlist parameter - allow regexp subpattern

Post by masterchief » Mon Jan 14, 2008 8:55 pm

Ah, I see now.
Andrew Eddie - Tweet @AndrewEddie
<><
http://eddify.me
http://www.kiva.org/team/joomla - Got Joomla for free? Pay it forward and help fight poverty.


Locked

Return to “Wishlists and Feature Requests - Archive”