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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | view-export-views-view-field--example.txt | 2.68 KB | esmerel |
| #1 | views-view-field--example.txt | 1.25 KB | esmerel |
| view-export-views-view-field--example.txt | 4.12 KB | esmerel | |
| views-view-field--example.txt | 1.67 KB | esmerel |
Comments
Comment #1
esmerel commentedUse these files instead. You know. WITHOUT LINE NUMBERS. *sigh*
Comment #2
esmerel commentedpushed to 7.x-3.x