This is odd - as stated in the title.

I'm displaying a simple CCK type, in this case a title with an external link as an HTML list with both fields inline.

The separator doesn't display. I was able to get around it easily (Views is so cool) by rewriting the output of the URL to be "- [token]" (I only wanted to put a dash between the title and the URL), but this looks like a bug to me. Weird.

Thought I might as well say something - carry on!

Comments

dawehner’s picture

Sadly i can't find the other issue but i'm 100% convinced that there was an issue about this bug already.

franz’s picture

I also confirm, not related to CCK. I had 4 fields, and made the 2 in the middle inline fields with a '|' as a separator. It doesn't get rendered. In some of the rows, the first field is empty (might be causing this?). Since the second field is always there, I'll put the separator inside the first, as a workaround.

Issue names on views issue queue are not representative, so it's really hard to find stuff. =/

osopolar’s picture

Status: Active » Needs review
StatusFileSize
new655 bytes
new638 bytes

In theme.inc's function template_preprocess_views_view_fields() is responsible for setting the separator:

if (!empty($vars['options']['separator']) && $inline && $object->inline && $object->content) {
  $object->separator = filter_xss_admin($vars['options']['separator']);
}

But if the object's content is empty and also if it is the string '0' the separator won't be set. I am not sure, why $object->content is checket here but I guess it should be enough to check isset($object->content). Because also if it is an empty string there should be a separator, because an empty field could for example have a label. If you hide empty fields, than there won't be an $object variable and so no separator. Therefore I guess we can also omit the check for isset($object->content). But on the last assumption I am not sure, so I created the patch with isset - for views-6.x-2.x-dev and views-6.x-3.x-dev.

mustanggb’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)