Hi,

I would like to combine in a view two fields (name and last name) into one column with only one link to its node.

I choose the table style in basic settings.
I put the two fields (name and lastname) in one column with a comma as a separator so the table looks like

name1, last name1
name2, last name2

Now I would like "name1, last name1" link to its node, but I don´t succeed.
Two links are shown separated by a comma: "name1" and "last name1"

Any idea how to do it?

Comments

bolecha’s picture

Any idea?

dawehner’s picture

Status: Active » Fixed

Intead of using the feature in the table you could use "rewrite output of this field" and "output this field as link".

When you add the second field to the first field via the first feature and define a custom url via the second feature you can manage to do it.

bolecha’s picture

Status: Fixed » Closed (fixed)

Thank you very much. It works!

goodboy89’s picture

Thank you "dereine".
It's work great !

varuntaliyan’s picture

Worked for me as well ...:)

Thank you dereine.

giga-b’s picture

It works but, if B field is empty no results are showed.

example:
A (hidden)
B (A+B)

A=x , B=y RESULT on B=x y
A=x , B=empty RESULT on B= empty

Thanks

giga-b’s picture

SOLVED!

i only have to show in B the A result if B is empty.