Import ICS : auto-category possible?

Home Forums Calendar Products Event Aggregator Import ICS : auto-category possible?

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1009162
    Antoine
    Participant

    Hi,

    When importing via iCal or ICS URL, is it possible to auto-assign (mapping) an Event to a category?

    SCREENSHOT: http://i.imgsafe.org/609d011.png

    Thanks!

    #1009434
    Brian
    Member

    Hi Again,

    You can only assign one category to an import. So if you would like to assign multiple categories you would want to break the import up by the category and import them that way.

    If you would like a more robust category assigning feature, I encourage you to visit our User Voice Page and either upvote an existing request or make a new request there.

    http://tribe.uservoice.com/

    Let me know if you have any follow up questions.

    Thanks

    #1009596
    Antoine
    Participant

    Hi,

    Thanks, that what I suspected. But is there any snippet that we can add in the functions.php file in order to auto-assign based on keywords in the events NAME or DESCRIPTION or any other fields from the ICS feed?

    Thanks

    #1009679
    Brian
    Member

    Hello,

    Unfortunately, I do not have any snippets for that.

    There is no hook to directly get into our save process, but you could use hook:

    save_post_tribe_events

    And hook in after the event saves.

    Then check for this custom field:

    _EventIcalSource

    If that is not blank you are on a iCal Imported Event and could then run a function to determine a category based on the title or content.

    That is something to get started, but I am limited in supporting customizations beyond getting you started, but I can try to answer a couple questions.

    Thanks

    #1010382
    Antoine
    Participant

    Hi Brian,

    Thanks, that makes sense to wait for the import and then apply a function to assign a category, I will look for that and if I got something I will share it here but it can takes few days before it’s complete.

    Regards,

    #1010415
    Antoine
    Participant

    Brian,

    I was thinking, isn’t this already implemented with the “Keywords” field during importation of a feed?

    Where the query is made? In the event title or/and description?

    Because if for example we got:

    Event title: XXX – Flight for Toykyo
    Event dDescription: Flight number TK001
    Keyword: Tokyo
    Category: Tokyo

    Then will it works?

    If so, we only need to import the same feed with different keyword for other category.

    Regards,

    #1010498
    Brian
    Member

    Hi,

    It is already there, sorry if I did not make that clear in my earlier response. You can search by a keyword and then import those events as and assign them to a category.

    Each category would have to be a separate import if you want multiple categories.

    As for the keyword we search in the summary and description fields for it in the ical feed.

    Does that help?

    #1011261
    Antoine
    Participant

    Hi Brian,

    That’s perfect! Thank you very much.

    #1011398
    Brian
    Member

    Great glad it helps.

    I am going to close this ticket, but if you need anything else related to this topic or another please post a new topic on the forum and we can help you out.

    Thanks

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Import ICS : auto-category possible?’ is closed to new replies.