Dataselect not working for multiple pages
Hi im trying to use a data select to get content from a region that is on multiple pages. This is the code im trying to use:
<perch:content id="branch" type="dataselect" label="Branch" page="/branches/*" region="Branch Map" options="city" />
So im trying to pull in the content for city thats in the Branch Map region for all the pages under the directory /branches but i cant seem to get it to pull anything in.
I can get it to pull in the content if i put the full file path for one of the branches like page="/branches/birmingham/index.php" but as the client will be adding in more branches and there is quite a few of them it needs to be pulling it in from all the ones under /branches/.
Debug from page template with data select on it:
Debug Message  SELECT u.*, r.* FROM perch2_users u, perch2_user_roles r WHERE u.roleID=r.roleID AND u.userEnabled=1 AND u.userID=1 AND u.userHash='691d51a129be8dda0938de7f76ee6d43' LIMIT 1 UPDATE perch2_users SET userHash='7af3d5d47b39c765184988c2bbb70322' WHERE userID='1'  SELECT p.privKey FROM perch2_user_privileges p  SELECT * FROM (SELECT DISTINCT settingID, settingValue, userID FROM perch2_settings WHERE userID=1 OR userID=0 ORDER BY userID DESC) AS settings GROUP BY settingID, settingValue, userID  SELECT * FROM perch2_content_regions WHERE regionID=528 LIMIT 1  SELECT * FROM perch2_pages WHERE pageID='126' LIMIT 1  SELECT * FROM perch2_content_items WHERE regionID=528 AND itemRev=4 ORDER BY itemOrder ASC  SELECT * FROM perch2_content_items WHERE regionID=528 AND itemRev=4 ORDER BY itemOrder ASC Using template: /templates/content/staff_info.html Form not posted or did not validate  SELECT * FROM perch2_content_regions WHERE regionPage='*' AND regionKey='Branch Map' Queries: 10 Memory: 3.8204