Question
What would be the easiest way to render parts of a page based on the
User-Agent header of the client browser?
In particular, we are looking for a way to present links to shared drives in two different ways, depending on whether the user agent contains (in basic) windows or linux.
ConditionalPlugin does part of the job, but it seems there is no way to switch on this header information as is.
(You can watch your browser headers at many internet sites, i.e. here:
http://www.ericgiguere.com/tools/http-header-viewer.html
)
Any ideas?
Environment
--
SteffenPoulsen - 24 Aug 2005
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
DakarRelease supports %HTTP and %HTTPS that recover the headers. You could easily hack up a temporary plugin to get these variables until Dakar is released.
--
CrawfordCurrie - 02 Sep 2005
See also related
HowUseConditionalComments.
--
PeterThoeny - 01 Oct 2005