Events Made Easy Forums Bug fixed or feature request implemented Feature Request: add this_location/this_category to Event List/Single Event

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #43215
    Anonymous
    Inactive

    Following on from: http://www.e-dynamics.be/bbpress/topic.php?id=1215

    would it be possible to add a this_location placeholder available in Event List and Single Event and also a new placeholder for this_category.

    I want to use these for suggesting related events.

    Thanks

    #48031
    Anonymous
    Inactive

    Could a donation bump this up a bit please?

    (Unsure if it’s even being considered.)

    Thanks

    #48032
    Franky
    Keymaster

    I looked at this last week, but it’s not as simple as it seems.

    But I just thought of something: what about using this in single event description:

    [events_list location_id=#_LOCATIONID]

    Franky

    #48033
    Anonymous
    Inactive

    That’s a good workaround – thanks.

    Just will have to play around with the formatting a bit more I think

    #48034
    Anonymous
    Inactive

    Got round to trying that and it doesn’t work.

    I was using this:

    [events_list location=this_location format="
    <li>#M #j #Y - #_LINKEDNAME </li>
    "]

    And changed to your’s:

    [events_list location_id=#_LOCATIONID format="
    <li>#M #j #Y - #_LINKEDNAME </li>
    "]

    But both options are returning 6 lines of the same single event page (that is already being viewed).

    FYI… in the example I’m describing, there are 6 events for that venue which is probably related to the 6 lines

    #48035
    Franky
    Keymaster

    “this_location” is only possible when viewing a location, so it doesn’t work when viewing an event.

    I’ll check out the other option now.

    #48036
    Franky
    Keymaster

    Just realized it: if using a shortcode like [events_list] in another shortcode, you need to watch out for the placeholders: all things with “#_” get replaced first, so that’s why it seems like the same content appears. In this case: you can’t use the format option. This will work:

    [events_list location_id=#_LOCATIONID]

    In trunk I’ve added the possibility to use format anyway, using #OTHER as prefix for placeholders you don’t want replaced:

    [events_list location_id=#_LOCATIONID format="
    <li>#OTHERM #OTHERj #OTHERY - #OTHER_LINKEDNAME </li>
    "]

    #48037
    Anonymous
    Inactive

    Franky,

    Sorry, I’m confused here.

    I was already using that shortcode (with the additional formatting elements) but it didn’t work.

    I also don’t see why it is a shortcode within a shortcode? Or is that just the way the plugin is written for the single events?

    I haven’t installed the latest trunk but as this: [events_list location_id=#_LOCATIONID] isn’t working for me I don’t think the #OTHER functions will either.

    Have I missed something here?

    Thanks,

    Tom

    #48038
    Franky
    Keymaster

    viewing an event is done via a shortcode. anyway it will work as I already tested it

    #48039
    Anonymous
    Inactive

    Ok, I’m using this in my settings for Default single event format

    <h2>More events at #_LOCATION</h2>

    [events_list location_id=#_LOCATIONID]

    But viewing this page I get events for different venues?

    http://www.plainandsimple.tv/events/562/toast-london-feat-glimpse-dj-set/

    #48040
    Franky
    Keymaster

    Ok, now this is a bug: LOCATIONID inside a single event details wasn’t filled in, so it returned 0 and thus all locations were given. Fixed in trunk.

Viewing 11 posts - 1 through 11 (of 11 total)
  • The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.
Scroll to Top