Switch page template per view

Home Forums Calendar Products Events Calendar PRO Switch page template per view

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #11517
    Robert
    Member

    Hey guys, i am wondering if it is at all possible to be able to switch page templates per view? So basically I would like to use one page template for event list (with right sidebar) and calendar (no right bar). Make sense?

    The reason I ask this is because I am using a responsive layout for my site and the calendar gets scrunched up and unreadable. If what I am asking above is not able to happen, is there anyway to make the calendar responsive? Your help is appreciated.

    #11528
    Rob
    Member

    Hey Robert. I don’t believe this is possible, but you may be able to hack something together…let me get Jonah (our dev) to take a look and respond directly.

    #11545
    Jonah
    Participant

    Hi Robert,

    Probably the easiest way to do this now is to use:


    if(strpos($_SERVER['REQUEST_URI'], "calendar/upcoming")) {
    //do something
    }

    You will need to change ‘calendar’ to the string for your events page. This way you can conditionally display your sidebar and also add/modify your container markup to increase the width, i.e: http://pastebin.com/1hqzxjD3

    I hope that helps,
    Jonah

    #11598
    Robert
    Member

    No that helps out a lot. I will give it a shot and let you know how it goes.

    #11608
    Rob
    Member

    Excellent! If you have any other questions, Robert, just give us a shout.

    #974671
    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 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Switch page template per view’ is closed to new replies.