Citation Link

callison - September 7, 2009 - 05:57
Project:Quotes
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:minor
Assigned:callison
Status:closed
Description

I want to use the Quotes module for my web design site. So, whenever I use a quote (or testimonial in my case) I want to point people towards the website of the author. I couldn't find an inherent way to do this through the module as is, so I made this little patch to change the citation in a block (if it is a URL) into a link.

This patch works fine as is, but could be better. All it does now is change the citation when it's in a block. I dug around a little bit in the quotes.module file and I couldn't figure out how to change the citation every time that it is retrieved. If anyone knows how to do that, please post a new patch or something. It would be great for the citation to be a link in pages, blocks, etc.

Hope this is helpful for someone. Any suggestions or thoughts for making this better would be appreciated. Thanks.

Chris

AttachmentSize
citation_link.patch924 bytes

#1

callison - September 7, 2009 - 06:02
Version:HEAD» 6.x-1.x-dev

Updated to correct version.

#2

NancyDru - October 1, 2009 - 04:32
Status:needs review» fixed

Thank you very much for the patch. In the end I did not, unfortunately, use it. I borrowed an idea we came up with on Web Links and added a setting to specify an input format (filter) that can be used for the author, citation, and bios fields that can be different from the node input format (which was being used on those fields too). You can set up a different filter that uses the URL Filter and/or allows the <a> tag. Note that it needs to also allow the <cite> tag for the citation.

Committed to 6.x-1.x-dev.

#3

NancyDru - October 12, 2009 - 16:30
Status:fixed» closed

Included in 6.x-1.40

#4

Quartz - November 15, 2009 - 09:19

Really appreciate this functionality. Thanks!

Is there any way to get Views to render the <a href= in the citation or author fields of a page view instead of printing the code itself?

#5

callison - November 15, 2009 - 10:57

Are you using 6.x-1.40 or the patch in the original post?

#6

NancyDru - November 15, 2009 - 14:06

BTW, IMHO, the best way to link back to a submittor's site is to use the RealName module and enable the "submitted by" line for Quotes (and/or the Submitted By module.

#7

Quartz - November 15, 2009 - 19:21

@callison 6.x-1.40

@NancyDru thanks will check those out - wouldn't have known they were 'solutions' unless you'd suggested them.

 
 

Drupal is a registered trademark of Dries Buytaert.