Set up: we are collecting event information that needs to be published as a node and an RSS feed. One of our fields is for languages, and it permits "unlimited" selections (1-3 languages is most common). When I run this through Views, I get a vertical print:

languages:
English
French
German

I couldn't find any immediate way on the Views UI to change this to put it all on a single horizontal line.
If I missed something perhaps you could let me know what the easy fix is and skip reading the rest below.

The source for the page view shows this section to be a stack of < div >s.
Inline spans & separators would do the trick, a thought that a look at theme folder > views-view-fields.tpl.php seemed to confirm.

However, I don't immediately see where to implement such a change.
Views has so many files under the hood with information passing between them...I haven't been able to locate the root of it all (the vertical language data stack formatting shown above). Or - the data print format from Views is simply inherited from CCK's initial output to node of the data collected on it's form = a CCK fix is necessary. At any rate, this is not a CSS problem as I saw suggested in one similar, former issue that surfaced in my searches.

Getting the language info on a single horizontal line is crucial to our RSS feed print because we need it to be as compact as possible.
More generally, it would also save space if the label and the data could be placed on the same line.

Thanks in advance for any help you can give me.

Comments

vic_d’s picture

Found a partial fix at the CCK level here: http://drupal.org/node/320346

which moves the data inline.
This puts label and data, generally, on the same line in the node view / views "page"
but not in the feed view = views "feed" where all labels and their data are on separate lines.

Multi selection data from the language field persists as a vertical display in views "page view":
languages:
English
French
German

In feed view, the print is catastrophic:
language:
english
language:
french
language:
japanese

In the original node view from CCK, with the fix, the print is different for the same multi-selection:
language: english
french
japanese

I am going to look around and maybe post something on the CCK issue list (how to get the the data on one line), but any fix would seem to need work on both sides (CCK x Views)

While stumbling around for a way out, I installed and enabled views_datasource module. I had high hopes but cant find any sign of what it is doing. No new choices or menus visible. I would like to escape from OPML. Running the data through another protocol might print differently, I thought.

sean porter’s picture

Did you have any luck with this issue? I'm trying to accomplish something similar - trying to get views to display content in-line as opposed to generating new rows. The Grid style / horizontal layout doesn't look right, I just want the entries listed one after another. I'm assuming this is something that could be fixed with theming but that's a bit out of my league at the moment!

esmerel’s picture

Status: Active » Fixed

This really sounds like a themeing issue to me. You can change the templates around, they're very flexible.

Status: Fixed » Closed (fixed)

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