Home › Forums › Calendar Products › Events Calendar PRO › new page with options and functions from events calendar
- This topic has 4 replies, 2 voices, and was last updated 12 years, 5 months ago by
Barry.
-
AuthorPosts
-
October 24, 2013 at 5:46 am #72676
osflake
ParticipantHi,
I have something to discussion.
We have a folder tribe_events in theme folder and every .php file are modified by myself (I can create a model own template). But I have a question: Could I create a new page (different) and use the event calendar option?ex. I add custom field in events settings ex. Artist. I add few events with differents artists. Then I create a new page ARTIST.php and set WP_Query which field from events and sorting posts by this fields then showing on page.
ex. I add events:
THE NEW YEAR CONCERT, (FIELD)Artist: Michael JAcson
THE SYMPHONY CONCERT, (FIELD)Artist: Phill Collins
BLACK JACK MAGIC PIANO, (FIELD)Artist Phill Collinsthen I use WP_Query to sort events and show:
Phill Collins:
THE SYMPHONY CONCERT
BLACK JACK MAGIC PIANO
Michael Jackson
THE NEW YEAR CONCERTIt is possible to create own site/template in tribe_events folder (ex artist.php) and what I should write in link ex. http://www.domain.com/artist??
Thanks for Your help
ArekOctober 24, 2013 at 5:58 am #72680Barry
MemberHi Arek,
If I’m understanding you correctly you are asking about creating a new view that can be used just like the month, week, day, photo, list views etc. This is indeed possible – the system was purposefully designed so that new views could be added (and that indeed is, partly, what Events Calendar PRO brings to the party by hooking into The Events Calendar core plugin) – but I have to say straight up that it’s way beyond the level of support we can offer here to guide you through that.
Right now we don’t have a great deal of documentation nor any tutorials relating specifically to the creation of custom views, so you’d really need to dig in and figure things out by yourself if you want to pursue this.
Sounds like a great idea though and it would be great to see what you come up with!
October 24, 2013 at 6:07 am #72683osflake
Participantif I understand well enough that I create a new file. tribe_events php folder and it should work right? I do not need to add functions
Thanks for you reply,
ArekOctober 24, 2013 at 6:08 am #72684osflake
Participantif I understand well enough that I create a new file. tribe_events php folder and it should work right? I do not need to add functions
tribe_get_template_part (‘modules / bar’);
tribe_get_template_part (‘my_folder / content’);
do_action (‘tribe_events_after_template’)Thanks for you reply,
Arekps. sorry for double post, <php tag was cut function.
October 24, 2013 at 6:30 am #72695Barry
MemberIt really depends on the scope of what you want to do: if you want to register a new view it would be a little more involved, if you want to create a custom view outside of the structure The Events Calendar offers then you could possibly get away with something like you’re suggesting.
ps. sorry for double post,
No problem at all – unfortunately, the forum is pretty terrible when it comes to handling code that users have posted, so it’s best to share via a service like Pastebin or Gist and drop the link in here.
This is very much a custom development issue though and regrettably we can’t help any further with it so I’ll go ahead and close this thread. It will be great to see what you come up with, though.
Thanks!
-
AuthorPosts
- The topic ‘new page with options and functions from events calendar’ is closed to new replies.
