Upcoming Events List missing No Results bodycopy


(Steve Brown) #1

Hi all,


It seems inconsistent that most of the listing asset types have a "No results bodycopy" option but the "Upcoming Events List" asset doesnt. Was this overlooked when creating the asset or is there some reason why it was left out? I guess the reason that Im asking is to work out whether I need to pay for it to be fixed.



It concerns me that some of these new asset listing types are created rather than simply adding more functionality to the current "asset listing" asset types. On many occasions I have wanted functionality of one asset listing type present in another.



Thanks,



Steve

[size="1"]3.20.4[/size]


(Greg Sherwood) #2

It would not be considered a bug. It was probably just not required by whoever funded that page type and nobody has since required it.


(Steve Brown) #3

Thanks Greg, Fair enough.


But, what the client considers as "not required" should not trump the usability benefits you get from making things work in a consistent way. I think its safe to say that all listing assets should have a "No results bodcopy" as standard. I will try to drum up some money to pay for this one to be implemented, but I hope that no others will be created in the future that dont have it.



Steve.


(Robin Shi) #4

Hi Nyngan,


We are using Javascript to write the "no results" text on the page. Basically just have the Javascript to look into the tag with an ID, if empty then print the text. It works well for us.



Robin


(Steve Brown) #5

Hi Robin,


yes, I am doing that as well currently, but its a bit of a kludge and being a government department we are always careful to only use JS for progressive enhancement rather than as a requirement. Still, it will have to suffice until we can pay for the listing to be fixed.



Steve.


(Tim Davison) #6

I know it's been a long, long time since this was posted, but I came across this same issue and this is how I worked around it instead of the JS fix that others are using (not that there's anything wrong with a JS solution - but sometimes you need/want to avoid a JS solution).

 

This code is in my Page Contents:

Dates:

    %event_list%
  • No sessions available.

And then add these CSS rules:

/* Training Calendar */
.training-calendar-no-sessions { display: none; }              /* usually this will be hidden */
.training-calendar-no-sessions:first-child { display: block; } /* but display it when it's the only one in the list */

Basically, the last element (that says no sessions) will only display when it's the only thing in the list.  It's not a perfect solution but it works for us.  works for IE8+.

 

Cheers