Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter undoproject

    (@undoproject)

    Thanks for both of you.

    This is my use case:
    Every event has tags, which show is performed, ticketed or not, sold out or not…
    On some pages, there’s no need to display the show tag. For example: https://bandart.hu/en/#showsOnTour see the three lists below the “Next date” sections.

    There’s a page where I have to display the title of the show for the corresponding event:
    https://bandart.hu/hu/fellepeseink/

    The first example works just fine. If you check the second example (the one in Hungarian) and resize the browser as much as you can (phone resolution) you’ll see that the last column is off the visible area. That is how I realized that no matter how I tried to put the table header and footer to the shortcode the table definition is fallen apart.

    • This reply was modified 7 years, 3 months ago by undoproject.
    Thread Starter undoproject

    (@undoproject)

    Hi @duisterdenhaag,

    thanks for the reply. Let me explain why I need external files.
    I need to display the event info in tables. It looks better, handling is easier.
    I have to display content based on different conditions. I have different use cases, every page has it’s own different event lists.
    So, it’be very inconvenient passing a really long format as a parameter in the shortcode.
    I did it though and lost the format header and footer. A table needs header / footer so I put these as a raw HTML code to the page. But it doesn’t work that way either because it’s losing the proper class definition and at the end, it is misformatted.
    So I think external formatting files would be the best for me, but if you can tell me how to solve this table misformatting thing I’d be grateful.

    Try without the single quotation marks.

    Thread Starter undoproject

    (@undoproject)

    @pferdetermine, as I mentioned the shortcode looks a complete mess without proper text formatting, and it is also long as hell, so I wouldn’t bother posting it here.

    I needed a list in a table that’s why there’s a Raw HTML block right before the shortcode: <table><tbody>

    shortcode in a normal Text Block:
    [events_list]<tr><td class=tdDate><b>#_EVENTDATES</b>{has_time}#_24HSTARTTIME{/has_time}</td> … {has_tag_ID1}<td class=ID1>…placing the icon…</td>{/has_tag_ID1}…</tr>[/events_list]

    Worth to mention: in the Text Block you can’t use quotation marks for CSS, Tag or other ids.

    There’s a Raw HTML block right after the shortcode:
    </tbody></table>

    Hope that helps.

    Thread Starter undoproject

    (@undoproject)

    Ok, I made it, actually it was far easier then I thought.
    No need to code, change php or passing any parameter. You can customize the list between the shortcodes. The only drawback is if you have a complex table format (as I do) with plenty of conditional parts, then you have to deal with the thing without using any white space or line breaks in the editor.
    For this scenario, it’d be useful to pass a format php / html in the shortcode. I tried it without any luck I’d love to know why I failed.
    So if someone has a working example share it with me pls!

    Thread Starter undoproject

    (@undoproject)

    Thanks for the reply @timrv !
    As I wrote filtering is not a problem.

    The problem is the conditional formatting. It’d be nice to use only the shortcode to pass e.g. a boolean value and use it as a conditional placeholder. If it is false (or 0) then I don’t display icons at the end of the table row. If it is true then I put one.

    On my site, all the events can have multiple tags that’s why I can’t use the URL.

    I was thinking to use the “format” attribute in which I’d link a php or html file. Therefore I’d use two kinds of and link the corresponding one on the suitable page.
    Can be done with the “format” attribute? Is so is there an example?

    I’ve already created a php file and put it into the my_template/plugins/events-manager/templates/formats/ folder but nothing happened.

Viewing 6 replies - 1 through 6 (of 6 total)