Hi, sorry to bring this thread to life after months.
I’m not entirely sure how you are using your tagging system, but I think it’s close to what I am trying to achieve as well (see thread here).
Which is, using a route to transform this
site.dev/cerca/technique:ritratto
into
site.dev/cerca/ritratto
and basically filtering out the technique:
bit of the url.
I tried to only adapt your route to my code like so
c::set('routes', array(
array(
'pattern' => 'cerca/(:any):',
'action' => function($technique) {
return $array('cerca', ["technique" => $technique]);
}
)
));
and the route is not working, but would like to know first if you were trying to filter out the tag:
part (categories) from your url or not! And eventually if you have any experience on how to do it?
Thank you