1

I am making a view in Drupal 7 to display grants: the name, the description, the amount of the grant, and the due date for submission.

It's easy to make a view that displays the name, the amount and the date in each row of a table, with the name linking to the full node display.

I've also learned how to display the description below the title, using the rewrite rules for the title, like:

[title]

[body]

What I want is having only the title as link to the full node, not all the text. Can I do this?

1 Answer 1

3

Try this:


Format

  • Format: table
  • Show: fields

Fields

  • Content: Title
    • under "settings" check "exclude from display"
  • Content: Path
    • under "settings" check "exclude from display"
  • Content: Grant Amt
  • Content: Due date
  • Content: Body

    • under "settings" choose to rewrite output as follows:

      <a href="[path]" title="grant page for [title]">[title]</a>
      <br />
      [body]


... and then add filter and sort criteria as desired.

4
  • But I would like to maintain the nice table formatting, and this would just display each one in a block of text, wouldn't it? May 14, 2012 at 18:53
  • I'm not sure what formatting you have on your display currently. If you prefer a table or an HTML list of fields to the unformatted list, you could use one of those instead. You could also use your stylesheet to style the view once it's created. This advice is rather vague; if you provide more detail about the effect you're trying to achieve/maintain I might be able to help further.
    – beth
    May 14, 2012 at 18:56
  • This is the test page with the view so far: preparewisconsin.org/grants I like everything about this view, other than that both the title and the description are part of the link to the node - I want just the title to be the link. I built it as described above. But I don't see a way to have just the title be the link, using the Views settings. May 14, 2012 at 19:00
  • Ah. I see. I will amend my answer to accommodate.
    – beth
    May 14, 2012 at 19:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.