- This topic has 3 replies, 2 voices, and was last updated 7 years ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘How do I …’ is closed to new topics and replies.
Events Made Easy › Forums › How do I … › … put an availability traffic light image to the Event Single Page?
Hello,
I need to put a availability image (red,yellow,green) to the events. User should see, how many seminar places are free at a glance.
At which point (file) do I have to install this and which query can I use to access the remaining number of seminar places?
About help, I would be very happy …
Greetings,
jfreakr
No need for DB queries, just use #_AVAILABLESPACES (see ttp://www.e-dynamics.be/wordpress/category/documentation/7-placeholders/7-2-events/ )
Together with the use of conditional tags (http://www.e-dynamics.be/wordpress/category/documentation/7-placeholders/7-1-conditional-tags/ ), you can check the value of this placeholder and decide to show something, see this example (to be placed in in your single event format):
[eme_if tag='#_AVAILABLESPACES' lt='10']
[eme_if2 tag='#_AVAILABLESPACES' gt='5']
<p>Less than 10 spaces but more than 5 spaces remaining</p>
[/eme_if2]
[/eme_if]
[eme_if tag='#_AVAILABLESPACES' lt='5']
<p>Less than than 5 spaces remaining</p>
[/eme_if]
That sounds very good, thank you very much.
Great!
Sorry, another question. How do I check if there is a limit over the skin?