Hi Guys,
I have managed to set up a view which takes the %1 argument to display a list of results that match a specific taxonomy term.
eg. /Film/Reel
Where "Reel" is a taxonomy term I use to filter my results.
This all works fine but I would also like to set "Reel" as the default argument if none was set when the URL was called.
eg. /Film
should display the same as
/Film/Reel
I have tried.....
// Make the first argument "Reel" if not already set
if (!$args[1]) {
$args[1] = "Reel";
}
return $args
but for some reason this does not work?
I have been searching for 3 hours to find a solution, but can't find any thing on how to do this?
Any help or general ideas would be much appreciated.
Thanks for reading,
openmind
Comments
Nevermind. Looks like the
Nevermind. Looks like the below code solved the problem.
Hope it helps someone else trying to do the same thing.
openmind