new page with options and functions from events calendar

Home Forums Calendar Products Events Calendar PRO new page with options and functions from events calendar

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #72676
    osflake
    Participant

    Hi,

    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 Collins

    then I use WP_Query to sort events and show:
    Phill Collins:
    THE SYMPHONY CONCERT
    BLACK JACK MAGIC PIANO
    Michael Jackson
    THE NEW YEAR CONCERT

    It 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
    Arek

    #72680
    Barry
    Member

    Hi 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!

    #72683
    osflake
    Participant

    if 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,
    Arek

    #72684
    osflake
    Participant

    if 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,
    Arek

    ps. sorry for double post, <php tag was cut function.

    #72695
    Barry
    Member

    It 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!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘new page with options and functions from events calendar’ is closed to new replies.