[TYPO3-english] detect facebook iframe - load different template

Philipp Gampe typo3.lists at philippgampe.info
Mon Jun 6 23:19:14 CEST 2011


Hi Denis,

Denis Torgal wrote:

> i have a template for my website, i want to add this website to facebook
> by iframe. If someone opens the facebook page, i want to detect this and
> load a different template.
> 
> I could check this by JavaScript, but don't like this solution.
> 
> Is there a Condition expression like the browser detection to fulfill
> this? If not - is it possible to check this by php?

Not by PHP, because the server can't know about the iframe. Inside the 
iframe is (theretically) a totally independant website.

But you could use another page type for this and just extent the link in 
facebook with ?type=your-typenum

Best regards
-- 
Philipp Gampe


More information about the TYPO3-english mailing list