Events Made Easy Forums How do I … Eventlist by a custom attribute

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #43771
    Anonymous
    Inactive

    I have defined a custom attribute: Status.

    I defined every event with status “open” or “closed”.

    Now i would like to create an eventlist which should only display the “open” events.

    I also have a “long” Eventlist which includes both, open AND closed. This works perfect.

    Is there any shortcode for?

    How can I realize this?

    #49576
    Franky
    Keymaster

    Use conditional tags for this, see

    http://www.e-dynamics.be/wordpress/?cat=24

    #49577
    Anonymous
    Inactive

    Thanks for your answer.

    I have read it but don’t understand how i can do it.

    I tried: [events_if tag='#ESC_ATT{status}' value='open']

    but it doesnt work…

    #49578
    Franky
    Keymaster

    That should work, assuming the attribute is called “status”. Where did you put this (in which EME settnigs field)?

    #49579
    Anonymous
    Inactive

    I put this as a shortcode in my page.

    In the settings field:

    – in the standard list format events: my standard format (#_town etc.), which i call with [events_list limit=60 showperiod=monthly scope=future] on my site.

    On my other site, which should display the “open” events, i placed the shortcode [events_if tag='#ESC_ATT{status}' value='open'] – but it doesnt work…

    #49580
    Franky
    Keymaster

    You need to put it in the “standard list format” setting for events, so you can then decide wether or not to show a specific event:

    [events_if tag='#ESC_ATT{status}' value='open']
    <tr><td>This is #_EVENTNAME</td></tr>
    [/events_if]

    Or you can use the available filter for events, see http://www.e-dynamics.be/wordpress/?cat=41

    #49581
    Anonymous
    Inactive

    Thanks.

    But my standard list format looks like:

    Code:
    <tr>
    <td borderColor=”#00ff00″>Date</td>
    <td borderColor=”#00ff00″>Name</td>
    <td borderColor=”#00ff00″>Location</td>
    <td borderColor=”#00ff00″>Info</td>
    </tr>
    <tr>
    <td borderColor=”#00ff00″>
    [events_if tag="#ESCd #ESCm #ESCy" notvalue="#ESC@d #ESC@m #ESC@y"]#d.#m.#y bis #@d.#@m.#y[/events_if]
    [events_if tag="#ESCd #ESCm #ESCy" value="#ESC@d #ESC@m #ESC@y"]#d.#m.#y[/events_if]

    </td>
    <td borderColor=”#00ff00″>#_LINKEDNAME</td>
    <td borderColor=”#00ff00″>#_TOWN</td>
    <td borderColor=”#00ff00″>
    [events_if tag='#ESC_ATT{status}']<b>#_ATT{status}</b>

    [/events_if]
    #_NOTES</td>
    </tr>
    </table></font>

    This is working for my page with the shortcode “[events_list limit=40 showperiod=monthly scope=future] perfectly.

    But now I would like to have a second page, with only the status=open events!

    I dont know how i can realize your proposal with having two sites… because the “standard list format” is already set for my first page.

    #49582
    Franky
    Keymaster

    Look at the “format” option for the [event_list] shortcode

    #49583
    Anonymous
    Inactive

    Thats a good point.

    I have tried it with the following code for the first test:

    Code:
    [events_list format=”[events_if tag='#ESC_ATT{status}' value='open'] <tr><td>This is #_LOCATION</td></tr> [/events_if]“]

    But it shows the whole events, not only the status “open”…

    #49584
    Franky
    Keymaster

    Hmm …. I’ll check this out myself, but it might be that the conditional tags won’t work here.

    I’m thinking about adding an option for event_list formats, so you can just choose the format as an ID then, that would solve most issues here (I hope). To be evaluated …

    #49585
    Anonymous
    Inactive

    Thank you very much!

    #49586
    Franky
    Keymaster

    For now, I suggest to use the availble wordpress filters:

    http://www.e-dynamics.be/wordpress/?cat=41

Viewing 12 posts - 1 through 12 (of 12 total)
  • The forum ‘How do I …’ is closed to new topics and replies.
Scroll to Top