I want to add some CSS and JS to multiple matched wildcard URL patterns. According to Add javascript to multiple specific urls, I can use a wildcard using drupal_match_path() and that works well for one pattern. However, I am trying to use a few patterns to add the same JS and CSS. So far I've tried these:
// By path matching wildcard patterns.
$path = drupal_get_path_alias();
$pattern = 'portfolio/* || photo-blog';
and
$path = drupal_get_path_alias();
$pattern = 'portfolio/*, photo-blog';
and
$pattern = 'portfolio/*' 'photo-blog';
$path = drupal_get_path_alias();
... but none of these work. I am guessing it may not be possible in the context of:
if (drupal_match_path($path, $pattern)) {
// add JS and CSS based on above
}