Hi Alun,

I have created a fixtures view which shows all matches and if there are any results, also the results.
However there is a problem here... if the result is 0-0 or 0-5 it doesn't show the zero because i hide the field when it's empty. How can i do this differently to make sure that a match without result shows just "-" and a match that is 0-0 shows 0-0.

Or does any other user who created such a page know how to fix this?

grtz Tim

Comments

emnzava’s picture

Dear Tim,

I hope now you dont have this problem anymore.

timbraeckman’s picture

Yes i still have that problem. Don't know how to fix it...

emnzava’s picture

the way i see it, since i pull node title from leaguesite_match content type, i don't have that problem.

I just edit how results are displayed here: http://www.example.com/admin/settings/matches

Do you output each field (home team, homescore....) separately?

Regards.

timbraeckman’s picture

No i get every field seperatly so i can add the logo's too. It's much nicer that way!

Alun’s picture

This is a weird problem, something to do with Views perhaps, as the values are clearly stored in the database, but they are loaded in as empty. I need to see how Views handles integers to see if this can be fixed easily.

timbraeckman’s picture

Ok great thanks! Hope you can find it soon :-)

Alun’s picture

Status: Active » Fixed

Here you go, its a Views issue, but if you dig around, there are some patches that might work for you, at least temporarily..
http://drupal.org/node/546586
http://drupal.org/node/559102

I'll mark this issue as fixed, as it isn't a problem on my end. If there are any issues you see, let me know.
Thanks

timbraeckman’s picture

Hey Alun,

I tried those patches but still the same problem :-( You have any idea how i can fix this?

Tim

Alun’s picture

Tim,
I assume you have the problem because you are displaying fixtures and results in the same view?

You could always use Panels to display the two types of match differently, place them on top of each other so they look like the same view.
Does that make sense?

timbraeckman’s picture

Yeah it makes sense but it should be mixed. Not on top of each other :-(
Did you check out my site? Than you can see what i want to create.

Alun’s picture

Yeah, I saw your site, which is arranging the matches in date order. This is ideal for using two views, because results will always be the most recent.
Put the results on the first view, and the fixtures on the second view, underneath.
To the user, they would just appear as a list, with no gap inbetween.
It should work!

timbraeckman’s picture

Oh yeah of course i understand what you mean!
But i won't need panels for that. I can do an attachment for that! :-)

Thanks for this great respons!

grtz Tim

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.