$browserArray = array(
'iPhone' => 'mobile.css',
'SymbianOS/9.1' => 'symbian.css',
'anotherbrowser' => 'otherbrowser.css',
'yetanother browser' => 'stillotherbrowser.css'
That’s right where I get hung up, because I don’t care what HUA it detects; I don’t want nor need to redirect every mobile browser to it’s own page. (I’ll save that for the CustomCSS)
I just want it to detect that the HUA is a mobile browser and redirect to id 332.
I really suck at this whole logic thing. I try to be patient with my self but I just find the Evo Plugin documentation to be lacking. I’m missing the Rosetta Stone for Dummies that will help me understand the logic so I can do more stuff with the few sites I manage.
http://rtfm.modx.com/display/Evo1/Plugins
Look at this code:
$url=$this->makeUrl($pg);
$this->sendRedirect($url, 1);
And from this link:
http://rtfm.modx.com/display/Evo1/DocumentParser+Object
one can find that the
method has red highlight to indicate "something", failing to describe just what that might be. Deprecated? Useless? Worthless? Really significant?
And yet that very method is used in the Plugin example in the Documentation. What am I to believe, or do with that? It’s frustrating. Same goes for sendRedirect.