Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Have you looked at using table tags <table><tr><td> within your global text field?
OR perhaps not using a global text field at all and marking the separate fields inline, in field settings? With this option you could use rewrite results to add the "by" and " - " to the chosen fields themselves.
Comments
CSS
You'll have to use a little css, something like
.views-view-myviewname-image img {
float: left; // or right, depending on effect you want
margin-right: 10px;
}
============
Drupal Core Maintainer for "Out of the Box" Initiative.
I was thinking there was an
I was thinking there was an easier way to do it inside the field without using css.
[picture] by [name] - [created]
The only thing I found in firebug that I assumed would change the user picture in views was the code below
views-field views-field-picture
I tired applying css to it but nothing changed. I don't see anything in firebug that resembles your example code
options: table tags? inline field settings?
Have you looked at using table tags
<table><tr><td>within your global text field?OR perhaps not using a global text field at all and marking the separate fields inline, in field settings? With this option you could use rewrite results to add the "by" and " - " to the chosen fields themselves.
I tried it, but it didn't
I tried it, but it didn't work.
What is in your global text field?
What is in your global text field? Can you copy the contents to here for us?
============
Drupal Core Maintainer for "Out of the Box" Initiative.
Global text [picture] asked
Global text
[picture] asked by [name] - [created]
Add CSS declarations
Add something like this:
Then in your css file, add something like this:
You can add more css for the other selectors that I put in above.
Hope that helps.
============
Drupal Core Maintainer for "Out of the Box" Initiative.
I tried it, but it did not
I tried it, but it did not work.
Opps, missing quotation marks "
Should read
============
Drupal Core Maintainer for "Out of the Box" Initiative.
where do you put this code
where do you put this code at? In the page.tpl.php?
In global text
Put the first part in your global text area in views, replacing what is there and put the second part in your css file.
============
Drupal Core Maintainer for "Out of the Box" Initiative.