ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Check if the user is visiting via permalink?

April 06, 2009 11:37am

Subscribe [3]
  • #1 / Apr 06, 2009 11:37am

    JayTee

    108 posts

    I have an events calendar on my site.  When users are paging through the calendar, they get a url like this:

    http://www.example.com/events/2009/04
    http://www.example.com/events/2009/03
    etc…

    When they click the permalink for a specific event, they get a URL like this:

    http://www.example.com/events/title_of_event

    On my display page, I have a title like this:

    Events for April, 2009
    Events for March, 2009
    etc..

    When the users click on the permalink, I DON’T want the “Events for…” title to show up.

    I can’t seem to find a conditional that appropriately helps me to check to see if they are landing on the page via permalink or through the normal “calendar paging” links.

    Any ideas?

  • #2 / Apr 06, 2009 11:44am

    Sue Crocker

    26054 posts

    Check for {segment_3} is the first thing that springs to mind.

  • #3 / Apr 06, 2009 4:38pm

    JayTee

    108 posts

    That’s what I ended up doing.  I guess I was looking for something like {if permalink} or something along those lines.

    Thanks!

    Jon

  • #4 / Apr 06, 2009 4:42pm

    Ingmar

    29245 posts

    Glad to see Sue was able to help you there. Please post again if you need additional help.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases