Dynamically Select Page Template (or override selected template)

Home Forums Calendar Products Events Calendar PRO Dynamically Select Page Template (or override selected template)

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #78625
    Aardvarky
    Participant

    Apologies if this is covered elsewhere (I’ve not been able to find it):
    I’d like to selectively override the events template that is set in display options using code. Essentially I’m trying to use two templates (one for use in a lightbox) and would like to be able to pass some parameter that defines which template file should be used.

    #78775
    Barry
    Member

    Hi sguilliard,

    There are different strategies you might use here, depending on what you are comfortable with.

    One could be to simply use the Default Events Template but customize it to load separate templates according to what you require. Another could be to exercise control via a template_include filter (or some other suitable hook).

    Does that help at all?

    #982660
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Dynamically Select Page Template (or override selected template)’ is closed to new replies.