RumpledElf asked: can you get views to return, say, all the titles of nodes in a particular vocabulary, but just give the titles for unpublished nodes and link to the nodes for the published ones?

merlinofchaos said:
That template file is named specifically for that view, so if you name your view

something else, the template file needs to be changed. You can use theme: information to see what candidate template

file names are.

[22:14] RumpledElf: There are 3 fields; only 1 is visible. The visible field uses the template to

test the value of the Node: Published field. If it's published it prints the field with the link and if not it

prints the field without the link.

... this way it might get documented and not lost.

Comments

esmerel’s picture

Use these files instead. You know. WITHOUT LINE NUMBERS. *sigh*

esmerel’s picture

Status: Active » Fixed

pushed to 7.x-3.x

Status: Fixed » Closed (fixed)

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