Re: [campsite-support] Check home page
  • {{ if ! $campsite->default_section->defined }}

    {{ /if }}

    However, you don't know yet whether this is the latest issue of an issue
    from the archive:
    {{ if $campsite->default_issue->is_current }}

    {{ /if }}

    So:
    {{ if ! $campsite->default_section->defined &&
    $campsite->default_issue->is_current }}

    {{ /if }}

    Mugur

    On Tue, Mar 23, 2010 at 8:31 PM, wrote:

    > Author: Terix
    > Link: http://code.campware.org/phorum/read.php?8,8261,8261#msg-8261
    >
    > --------------------------------------------------------------------------------
    >
    > How do i check if i am on home page? I have a navigation menu', which has a
    > different style for the selected item, and when the user is inside a section
    > i can use this:
    >
    > {{ if $campsite->section->number == $campsite->default_section->number }}
    >
    > to determine if i need to load a style or another.
    > How do i do this kind of thing if the user is on home page?
    >
    > --
    > Sent from Campware Forums
    > http://code.campware.org/phorum
    >