ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Calendar by author_id?

February 08, 2012 6:07pm

Subscribe [3]
  • #1 / Feb 08, 2012 6:07pm

    ROCKET MEDIA

    153 posts

    Is there a way to refine calendar entries by author? I currently have this tag but it doesn’t seem to be working. I have confirmed that {embed:author_id} is indeed passing it’s id number correctly.

    I’m guessing this isn’t how you accomplish this—but what is the correct way?

    Thanks.

    {exp:channel:calendar channel="event" author_id="{embed:author_id}" switch="calendarToday|calendarCell" show_future_entries="yes"}
  • #2 / Feb 09, 2012 3:37am

    Andrew Fairlie

    126 posts

    Hmm. You’re right, strangely an author_id parameter doesn’t exist for exp:channel:calendar.

    The most efficient way for you to do it is _probably_ to make a calendar template using normal exp:channel:entries loop. That’ll give you the most control and would be reusable on all future projects.

    I’m always weary of these ‘niche’ methods because they don’t seem to share the basic functionality of the more standard methods and I’m always a little worried that it’s a sign they’ll be deprecated.

  • #3 / Feb 09, 2012 1:18pm

    ROCKET MEDIA

    153 posts

    Have you seen any examples of this that I could reference? I am in agreement that it’s probably moving away from the calendar tag, and makes sense to simply port it over, however, I’m having a hard time thinking of a way this would be completely feasible with the standard tag. I can of course script PHP to do something of the sort, but it just seems a little too “raw” of a solution. The simpler the solution, the better.

  • #4 / Feb 09, 2012 4:55pm

    Shane Eckert

    7174 posts

    Hello Rocket Media,

    Thank you for using the ExpressionEngine forums!

    You are correct, there is no author_id to limit the events to one author in the calendar tag. This is not a support parameter.

    The best implementation of a calendar that I have seen is Calendar by Solspace.

    Let me know if I can be of any more help.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases