Citation Link
| Project: | Quotes |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | minor |
| Assigned: | callison |
| Status: | closed |
Jump to:
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
| Attachment | Size |
|---|---|
| citation_link.patch | 924 bytes |

#1
Updated to correct version.
#2
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
Included in 6.x-1.40
#4
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
Are you using 6.x-1.40 or the patch in the original post?
#6
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
@callison 6.x-1.40
@NancyDru thanks will check those out - wouldn't have known they were 'solutions' unless you'd suggested them.