Jump to:

10851 Posts in 2517 Topics by 1793 members

All other Modules

SilverStripe Forums » All other Modules » Event Calendar: Change default Page Type

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1332 Views
  • BigChris
    Avatar
    Community Member
    63 Posts

    Event Calendar: Change default Page Type Link to this post

    Hello,

    At present I have built my own theme, and the Calendar and Events use the default Page.ss.

    I would like to point the Event Calendar to another page type that I will create. The reason for this is I have a horizontal navigation menu and 2nd level Menu items appear are on a second horizontal menu under the first menu. But I would like to hide the 2nd level Navigation menu on the Event Calendar Page.

    What do I do I to change the Page Type of the Event Calendar?

    Cheers
    Chris

  • UncleCheese
    Avatar
    4085 Posts

    Re: Event Calendar: Change default Page Type Link to this post

    I'm not sure what you mean by change the "page type." If you're just talking about using a custom template, all you have to do is create one in your theme directory for Calendar.ss and CalendarEvent.ss. Silverstripe will always look in your theme dir first for a template, and the fall back on the default template contained in the module.

  • BigChris
    Avatar
    Community Member
    63 Posts

    Re: Event Calendar: Change default Page Type Link to this post

    Thank you UncleCheese, your suggestion was correct a custom template did the trick.

    Thanks again.

    Chris

    1332 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.