Conditional Widgets

Home Forums Calendar Products Events Calendar PRO Conditional Widgets

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14523
    Vincent
    Member

    I use Gantry Framework to display widgets contextually based on various parameters (page, category, tag, etc)

    Events Cal Pro lists creates a few options in that manner (event category, venue, organizer, etc) but does not seem to create a way to display contextualized widgets on the calendar pages itself. In my case at /events.

    At it’s most basic I would like to create links for the calendar to display the categories therein…trying to use a text widget to do that, it just won’t display.

    #14561
    Rob
    Member

    Hi Vincent. Let me see if Jonah has any ideas here; he’s done some work with customizing widgets recently and may have some thoughts.

    #14600
    Jonah
    Participant

    Hi Vincent, you’re going to need to figure out some way in Gantry to filter or hook into the sidebar and conditionally check to see if your are on one of the event pages with code like this:


    if ( tribe_is_month() ) { //set title on grid view

    } else if ( tribe_is_event() && !tribe_is_day() && !is_single() ) { //set title on list view

    } else if ( is_singular() ) {

    } else {

    }

    In 2.1 we’re changing the templating system so that the events pages will be more available for things like custom sidebar setups and page title customizing but for now you’ll have to hack it somehow.

    I hope that helps!

    #975529
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Conditional Widgets’ is closed to new replies.