I'm trying to get one of my templates to include some PHP code that will check the URL segments of the URL that loaded it.
In a post on the EE forums, I got this advice:
What's the correct way to do this in PHP? Thanks very much in advance for any info.You could check the URL segments. If there's an entry ID or "URL Title" then you know it's from a permalink.