Events Made Easy › Forums › Bug fixed or feature request implemented › Feature Request: add this_location/this_category to Event List/Single Event
Tagged: feature request
- This topic has 10 replies, 2 voices, and was last updated 13 years, 4 months ago by Franky.
-
AuthorPosts
-
Tue 12 Jul 2011 at 15:42 #43215AnonymousInactive
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
Mon 1 Aug 2011 at 09:00 #48031AnonymousInactiveCould a donation bump this up a bit please?
(Unsure if it’s even being considered.)
Thanks
Mon 1 Aug 2011 at 11:50 #48032FrankyKeymasterI 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
Mon 1 Aug 2011 at 12:08 #48033AnonymousInactiveThat’s a good workaround – thanks.
Just will have to play around with the formatting a bit more I think
Wed 3 Aug 2011 at 12:58 #48034AnonymousInactiveGot 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
Wed 3 Aug 2011 at 18:23 #48035FrankyKeymaster“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.
Wed 3 Aug 2011 at 18:46 #48036FrankyKeymasterJust 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>
"]Thu 4 Aug 2011 at 11:14 #48037AnonymousInactiveFranky,
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
Thu 4 Aug 2011 at 13:28 #48038FrankyKeymasterviewing an event is done via a shortcode. anyway it will work as I already tested it
Thu 4 Aug 2011 at 15:48 #48039AnonymousInactiveOk, 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/
Thu 4 Aug 2011 at 16:19 #48040FrankyKeymasterOk, 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.
-
AuthorPosts
- The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.