Closed (fixed)
Project:
Rate
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
17 Jan 2013 at 16:43 UTC
Updated:
24 Feb 2014 at 22:30 UTC
Jump to comment: Most recent
http://drupal.org/node/940532
This patch is intended to improve theming of widget. Now we can override individual widget (fivestar,yesno etc) by copying existing template from templates/ into your theme directory.
| Comment | File | Size | Author |
|---|---|---|---|
| rate-theming-940532.patch | 10.89 KB | ymakux |
Comments
Comment #1
giupenni commentedWorks like a charm!!!
Thanks!
Comment #2
geetotes commentedAwesome! Just what I was looking for, and it works! Thank you!
Comment #3
eigentor commentedWell, one could do this before, only if one kept the strange naming convention with prefixing the template name with
rate_template_Comment #4
therobyouknow commented- Folks, pleased it works fo you, but could you enlighten me on how it works for you, please? Examples?
The other link, http://drupal.org/node/940532 gives no clues except for snippets of code that are unrelated.
To the patch maker (primarily or other folks please comment too):
I presume this patch enables us to override the output of rate in our own theme such that we can insert markup for a title above the five-star, for example?
i.e. the override code would go in our own theme, here, for example: sites/all/themes/mytheme/template.php
If so can you supply the function to override?
Comment #5
hachesilva commented@therobyouknow:
You must use 7.x-1.x-dev version of the module. Then, you patch it using git (https://snipt.net/hachesilva/applying-a-patch-from-drupalorg-in-2-second...) or watherver tool you use for that purpose.
After patching your module, yo can copy files from the module's template folder to your theme. Modify the file you copied and clear caches.
Worked for me.
Comment #6
therobyouknow commentedThank you @hachesilva which of the patch did you apply yourself for it to work - there are several mentioned in: http://drupal.org/node/940532 or was the patch from somewhere else? I couldn't see your name in the comments so I am not sure - please give the URL to the page that links to the patch that you applied.
(By the way, @hachesilva, thank you for the link on applying patches - tips like these are always very welcome though I am fairly familiar with applying patches, a different example of my applying a patch here: https://drupal.org/node/1244204#comment-6678836
Comment #7
hachesilva commentedI used this one: https://drupal.org/node/940532#comment-6950932, that is the same linked at the top of this thread.
Comment #8
therobyouknow commentedThanks @hachesilva !
Comment #9
mxtProvided patch works for me also.
4 confirmations can allow RTBTC.
Can this be committed please?
Thank you very much!
Comment #10
nikit commentedProvided patch is working nice. Commit please.
Comment #11
mauritsl commentedPatch is committed to 7.x-1.x and included in the 1.7 release. Thanks!