Events Made Easy › Forums › How do I … › Show Listing for Event's Date and 1 wk in Past
Tagged: scope
- This topic has 4 replies, 2 voices, and was last updated 11 years ago by
Anonymous.
-
AuthorPosts
-
Thu 2 Oct 2014 at 06:24 #52954
Anonymous
InactiveTrying something crazy here…
Using the shortcode [eme_events limit=1 notcategory=2+8+9 order=DESC scope=--#Y-#m-#d] on my events page.
I didn’t know if the “scope=–#Y-#m-#d” would work, but it did!
Now all I need is somehow to combine the scope of –YYYY-MM-DD with -7d.
With this scope, I could have Event X in the future display info on an event happening the previous week to Event X. This would be cool!
Possible? Any thoughts? Move to feature request?
Sun 5 Oct 2014 at 15:52 #52992Franky
KeymasterIn eme_events the scope you created with scope=–#Y-#m-#d seems meaningless, as in the events list there’s no start/end for a single event, but you could use this shortcode inside e.g. your single event formatting, there this will work just fine.
Concerning your “-7d” part: I’d suggest that you create a custom attribute (e.g. ‘older_date’) for the event and use that to indicate from which date you want to show events info from in YYYY-MM-DD format, and then use that attribute:
[eme_events limit=1 notcategory=2+8+9 order=DESC scope=#_ATT{older_date}]
or:
[eme_events limit=1 notcategory=2+8+9 order=DESC scope=#_ATT{older_date}--#Y-#m-#d]Sun 5 Oct 2014 at 19:47 #52994Anonymous
InactiveI can see how this would work, but it would be very tedious to do. It would be fine if I were creating each of my events individually, but I am not.
Basically, I am creating “openings” that people can book my services. Each opening is an RSVP-enabled event that spans one week. These openings (events) are all generated through one reoccurring event for years into the future.
I would have to create each opening (150+) individually for this to work…
Would it take much on your part to add a feature for this? Maybe a 7d–YYYY-MM-DD scope?
I would appreciate it very much, and I would be willing to sponsor! Let me know and I’ll add it to Feature Requests for whenever you would have time.
Thanks for the support!
Sun 5 Oct 2014 at 23:37 #52997Franky
KeymasterWell … I haven’t gotten any donations lately, so … 🙂
Mon 6 Oct 2014 at 04:22 #52999Anonymous
InactiveI’ll take that as a “yes” and add this to feature requests. 🙂
-
AuthorPosts
- The forum ‘How do I …’ is closed to new topics and replies.