hide empty medialist
-
Is there an option to hide the medialist when there’s no files to display? (instead of showing the medialist with “Info! There are no files to display”)
I’m using the EventPrime plugin, which displays events as posts on the /events page.
For example: events/?event=103 is the page of the post with id 103.
The /events page consists only of a shortcode: [em_events]Because of this, when I put a medialist shortcode tag on the page of an event, and view it using the permalink of this event (post), then it displays the medialist as it should.
However, when I browse the events using the /events page, and open an event from there, it shows an empty medialist because it is opened from within the /events page. (using the [em_events] shortcode)I can make the medialist display the files from the post by assigning a category to them and setting these parameters:
globalitems=1 category=”filesfrompost103″But then the layout isn’t shown.
I can fix this by editing the events page and adding an extra [medialist] shortcode below [em_events]. Then the medialist plugin is loaded for this page, but it also shows an extra empty medialist below the event details.
So an option to hide the medialist when there’s no files to display would be a solution for this.Or is there another (better) way to enable the medialist plugin for the [em_events] shortcode?
- The topic ‘hide empty medialist’ is closed to new replies.