|
Things Show When They Shouldn't: logo / 0 reviews 2 Years, 2 Months ago
|
|
|
Hi,
In version 0.4.3 I've noticed a couple of things showing up even though a setting says they shouldn't
1. I had a problem (0 reviews) showing near the title. In collection.default.php around line 520 I needed to put quotation marks around a php If statement:
if("$params->get('reviews')">0) {
This ensures that "reviews" only appears if reviews really are above 0.
2. Even though in the Menu config no image is selected, the Collection image shows up. This wasn't compatible with my theme:
I had to add $img = ' ' around line 281 and get rid of alt a couple of lines down.
Cheers
|
|
|
|
|
|
|
Re:Things Show When They Shouldn't: logo / 0 reviews 2 Years, 2 Months ago
|
|
|
Hi,
thanks for the report, your comments may help other users.
stephen wrote:
Hi,
In version 0.4.3 I've noticed a couple of things showing up even though a setting says they shouldn't
1. I had a problem (0 reviews) showing near the title. In collection.default.php around line 520 I needed to put quotation marks around a php If statement:
if("$params->get('reviews')">0) {
This ensures that "reviews" only appears if reviews really are above 0.
No, it doesn't. Correct would be a check if $row->numreviews > 0.
Regards,
Thorsten.
|
|
|
|
|
|
|
Re:Things Show When They Shouldn't: logo / 0 reviews 2 Years, 2 Months ago
|
|
|
I see. Well, the main thing for me was to stop (0 reviews) from showing right next to book titles and adding quotation marks did it. I guess there are many options one could try. Perhaps there could be a config option for it?
Thanks for the great component.
|
|
|
|
|
|
|