Home › Forums › Calendar Products › Events Calendar PRO › Registering a custom view
- This topic has 4 replies, 2 voices, and was last updated 11 years, 2 months ago by
George.
-
AuthorPosts
-
February 24, 2015 at 6:57 am #944505
Butch Roy
ParticipantHello, 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:
What am I missing?
February 24, 2015 at 8:55 am #944546George
ParticipantHey 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,
GeorgeFebruary 24, 2015 at 11:22 am #944582Butch Roy
ParticipantYup, 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.
February 24, 2015 at 1:11 pm #944596Butch Roy
ParticipantOK 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!
February 24, 2015 at 4:21 pm #944612George
ParticipantHey 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 -
AuthorPosts
- The topic ‘Registering a custom view’ is closed to new replies.
