I have one D6 site where I have a View with Unformatted style and Row style fields and grouped on "Taxonomy: Term." It looks like I want:
<h3>Dogs</h3> Rover Spot Cleaver <h3>Cats</h3> Puffy Fluffy Snuffy
Now on a 2nd site I tried to do the same thing (same settings as above) but instead I get a look like:
Rover type: Dog Spot type: Dog Puffy type: Cat Fluffy type: Cat etc.
It's grouped by "animal type" but it appears with each row instead of being a header. The first site has no custom templates. The only difference I see is that the first site is a page View and the second is a block.
Can someone tell me what I am missing? Why doesn't my 2nd site look like the first and how can I get it to ?
Thanks!
Off the top of my head, Id' say it looks like you have the type field set to display in the second view and not the first. There is a checkbox in Views to keep a field in a view and not display it in the results, so it can be used for things like grouping.
Steve
On Mar 31, 2011, at 7:53 AM, Fred Jones wrote:
I have one D6 site where I have a View with Unformatted style and Row style fields and grouped on "Taxonomy: Term." It looks like I want:
<h3>Dogs</h3> Rover Spot Cleaver <h3>Cats</h3> Puffy Fluffy Snuffy
Now on a 2nd site I tried to do the same thing (same settings as above) but instead I get a look like:
Rover type: Dog Spot type: Dog Puffy type: Cat Fluffy type: Cat etc.
It's grouped by "animal type" but it appears with each row instead of being a header. The first site has no custom templates. The only difference I see is that the first site is a page View and the second is a block.
Can someone tell me what I am missing? Why doesn't my 2nd site look like the first and how can I get it to ?
Thanks!
[ Drupal support list | http://lists.drupal.org/ ]
Off the top of my head, Id' say it looks like you have the type field set to display in the second view and not the first. There is a checkbox in Views to keep a field in a view and not display it in the results, so it can be used for things like grouping.
Hmmm, you're right that the first site has it set not to display but not the second site. Kind of counter-intuitive if checking off "Exclude from display" actually puts it into an H3 tag. If that's the default anyhow. I don't see any custom templates there.
The second site indeed did not have that checked off, but if I do check it, then the animal type is just not displayed at all. :(
Thanks.
Well, you also have to select the type field to be used for grouping in the display settings.
On Mar 31, 2011, at 8:09 AM, Fred Jones wrote:
Off the top of my head, Id' say it looks like you have the type field set to display in the second view and not the first. There is a checkbox in Views to keep a field in a view and not display it in the results, so it can be used for things like grouping.
Hmmm, you're right that the first site has it set not to display but not the second site. Kind of counter-intuitive if checking off "Exclude from display" actually puts it into an H3 tag. If that's the default anyhow. I don't see any custom templates there.
The second site indeed did not have that checked off, but if I do check it, then the animal type is just not displayed at all. :(
Thanks.
[ Drupal support list | http://lists.drupal.org/ ]
Off the top of my head, Id' say it looks like you have the type field set to display in the second view and not the first. There is a checkbox in Views to keep a field in a view and not display it in the results, so it can be used for things like grouping.
The top of your head is doing better today than my entire head. This worked! BUT the previous developer had set display:none; for the H3 tag in certain blocks. I have no idea why but THAT is why I didn't see them.
Thanks for your help.
Fred