hi merlin and thanks (or anybody that can help...)-
for your fantastic views module.
it goes without saying, but should be said-
views makes drupal better in every way... it is the perfect complement.
just finishing a new site, views-heavy, and bumped into a small issue that you could prob answer in a few secs... ?
and / or throw me a link or two for more info...
(and i know this is a field display issue- but i hope i am not incorrect in thinking it is maybe also an aspect of views... or at least is, in the way that i am proposing below to make it display as valid?)
specifically-
i noticed that when i have my views page displaying just how i want it:
http://drupalcore.com/cantorarecords/releases
the ONLY thing preventing this rich, dynamic content from validating as xhtml 1.0 strict-
is that when i have grouped for display (and need to avoid duplicates), something in a field with more than 1 item-
the default output that results seems to enclose the necessary and proper
and this is what throws the error.
i have pasted below the current output for what i am calling the single item- and the multiple items.
thinking... is there a template i could override, and / or create for this view (grid / fields)-
or a function i could throw in template.php-
that would allow for the replacement of the enclosing with a
and i hope i am not being too ignorant when i ask if this is a good thing... and something that would make it valid-
AND that maybe, by default you are using the instead of
please advise and thanks...
a minute or two of your time to reply would save me some time-
i have already looked for an hour or two- just not sure if i am barking up the wrong tree with this-
or if in fact the solution proposed above is cool, and just what i need- and i just need to know how / where to implement it.
THANKS!
as always-
vincent, in buffalo
ps-
i could paste in the full query / output but i thought the info above- and the snippets below- might be enough?
single item (valid xhtml 1.0 strict):
<div class="views-field-field-rel-videos-nid">
<label class="views-label-field-rel-videos-nid">
Watch Videos:
</label>
<span class="field-content"><a href="/cantorarecords/artists/savoir-adore/video/savoir-adore-the-adventures-of-mr-pumpernickel">Savoir Adore "The Adventures of Mr. Pumpernickel"</a></span>
</div>
multiple items (not valid xhtml 1.0 strict):
<div class="views-field-field-rel-videos-nid">
<label class="views-label-field-rel-videos-nid">
Watch Videos:
</label>
<span class="field-content"><div class="field-item"><a href="/cantorarecords/artists/mgmt/video/mgmt-boogie-down">MGMT "Boogie Down"</a></div><div class="field-item"><a href="/cantorarecords/artists/mgmt/video/mgmt-destrokk">MGMT "Destrokk"</a></div></span>
</div>
</td>
Comments
Comment #1
merlinofchaos commentedHmm. In the row style settings for those two fields, are you able to check the INLINE box? That should turn the div tags into span tags if they are not block elements, and they do not appear to be.
Comment #2
basicmagic.net commentedhi merlin and thanks!
appreciate the assistance, GREATLY.
followed your instructions, and yes-
i am able to check the inline setting for the row style for this field.
BUT- no effect.
meaning the enclosed DIV tags are still DIVs, not spans.
AND- forgive my ignorance... just wondering if you saw that my issue is not with two fields-
but instead the output created by default for just one field-
with grouped multiple values.
so... in this case, with the 2 DIVs being produced / output for the 2 items in this field-
and enclosed in the SPAN for the field content-
#1 i am thinking / asking if this behavior would hold true, out of the box-
for any other fields with grouped multiple values- ?
#2 and if so, would a possible "fix" be either to somehow override either the enclosing SPAN for the field content... turning that into a DIV-
#3 and / or indeed change the enclosed DIVs for each field item value- into SPANS.
if you need me to paste in any code or something... please let me know-
and i am most curious if this little thing i noticed is what you intended by default, for some good reason i am sure-
but with the side effect, in this case at least- of causing fields with grouped multiple values not to be output as xhtml 1.0 strict.
please advise and thanks again!
Comment #3
merlinofchaos commentedOh, if it's just a single field then you need to refile this against the module that produces that field. Not sure exactly which one that is.
Comment #4
merlinofchaos commentedNote that if the module that provides the fields is including divs, then it should be marking the item is a block level element so that Views will use a div, not a span, around the field.
Comment #5
basicmagic.net commentedaha!
thanks much for the speedy reply.
so i will file this / research against node reference for cck?
that is what is producing the 2 enclosed, grouped field items, in this case-
simply 2 node reference links to a few video nodes.
so am i on the right track with this...
i am just a wee bit surprised to think that node reference wouldn't play nice with views by default-
and mark the item as a block level element.
please advise and thanks again for the insight and assistance!
Comment #6
basicmagic.net commentedhi merlin and thanks-
or anyone...
still trying hard to solve this-
with no luck.
do you think you could look at this for a minute, please-
http://drupal.org/node/369364
am i on the right track with this?
Comment #7
merlinofchaos commentedI'm almost sure this is a CCK problem; I left a note to hopefully point CCK devs in the right direction, but they are as overwhelmed as I am so it could take awhile.
Marking this a dup; all further conversation should continue in the issue linked in #6.