Registering a custom view

Home Forums Calendar Products Events Calendar PRO Registering a custom view

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #944505
    Butch Roy
    Participant

    Hello, I am building a custom view in plugin form (not unlike the old Agenda view tutorial) but I am having trouble with registering the view. I created a function to register it, then added the filter, and it won’t show up on the backend. Here is the relevant code:

    http://pastebin.com/dCwNWw1k

    What am I missing?

    #944546
    George
    Participant

    Hey Brian,

    We mentioned in another post of yours that that tutorial is far out-of-date, and that another tutorial probably won’t come out at least until our next major update is released to the public → https://theeventscalendar.com/support/forums/topic/agenda-view-tutorial/

    So with in mind, if you used anything from that old tutorial as a reference, it’s not surprising you might run into issues here. I think that to be honest, we should basically ignore that old tutorial and address your issues here as something new and separate:

    What is the exact sort of thing you’re trying to do here? What’s the view you’re trying to make?

    Hopefully we can help you out a bit here and point you in the right direction. Sorry for any confusion you might have run into from that old tutorial.

    Cheers,
    George

    #944582
    Butch Roy
    Participant

    Yup, I was aware that the tutorial was expired, but the Agenda option shows up in the backend once installed, so I figured that would be a good place to start.

    What I’m trying to do is build a customized week view. I initially started with the Pro week view, but it got to the point where I was undoing so much of it that making my own made more sense. (Though I will be using some of the existing Pro week view code)

    So all I’m trying to do right now is to have my view show up as an option on the backend.

    #944596
    Butch Roy
    Participant

    OK I think I figured this one out. I followed your advice and forgot about all the old Agenda view plugin stuff, and basically wrapped all the view registration code (and other stuff) into a class and when from there. And lo and behold, my view shows up on the backend. Thanks!

    #944612
    George
    Participant

    Hey Brian,

    Cool, glad to hear you found a solution here. I’ll close up this ticket for now – be sure to keep backups of all customizations you make on your site!

    Cheers,
    George

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Registering a custom view’ is closed to new replies.