I would like the users of my site to be able to discuss each quote they see in random or last quote block. Unfortunately, currently it shows only text and author of the quote without any link to node page. How can I make quotes in the block clickable?

Comments

2222a’s picture

I would like this one too.

hawkdrupal’s picture

Category: support » feature

Feature Request: Store the quote in the node's Title field, instead of (or in addition to) the current body field.

I have 12 thousand quotes, and my urgent need is to locate and edit a quote when it has a typo. I can't find any direct way to list existing quotes alphabetically (I have 12 thousand of them) to find and fix them as needed.

The quote "body" field doesn't work in views because body fields are treated as rich text so can't be sorted.

Drupal uses a node's Title as the text of links. But without anything useful in the quote's Title field, there's nothing to click, to add a comment, edit the quote, etc. Even Drupal's native node content list shows blank for quotes because it lists node Titles.

One fix would be to have this module put the quote into the Title field rather than a separate body field. (Why doesn't it?)

Another fix would be to have the module automatically put the quote text into both fields, but this wastes storage and creates more complex code.

My temporary fix is to copy the quote text from the body into the Title field so it is in both fields, but this is a pain.

yngens’s picture

hawkdrupal, i believe your request is little different from initial one. please also note that subject fields, where titles are saved, are character limited. so some long quotes simply will not fit in there.

hawkdrupal’s picture

Sorry, I thought I was creating a new feature request, don't know how it got attached to the earlier comment.

Thanks for noting the length problem with the Title field. Still, it would be a huge improvement to allow the Quotes body field to appear in views -- OR to ALSO put the body text -- as much as will fit -- into the Title field.

nancydru’s picture

If I get commit permission, I will do the original request.

@hawkdrupal: You need to submit a separate feature request so it can be properly tracked.

nancydru’s picture

Assigned: Unassigned » nancydru
Status: Active » Fixed

Fix committed.

If a quote has comments enabled, it will get a link to view it. The link text is configurable on the settings page, as is its relative position.

dsp1’s picture

would like this optional. can there be a checkbox? not a feature I need.

nancydru’s picture

Status: Fixed » Needs work

If comments are not enabled, the link will not be there.

Also, you may add to your CSS:

.quote-view-link {
  display: none;
}
nancydru’s picture

Status: Needs work » Fixed

I changed the text of the settings field to indicate that leaving the text blank will disable the link.

Committed to the -dev release (will roll up around midnight GMT).

dsp1’s picture

do you mean "Block "View" link text:" in admin blank? I did blank that field and save. Now I get "en/" printed over the block.

<div class="quote_view_link">en/<a href="/~ddp/drupal/?q=en/content-0"></a></div>

nancydru’s picture

You need to wait until the -dev version rolls up and then download that. There was a code change to skip building the link entirely.

nancydru’s picture

Status: Fixed » Closed (fixed)