When I click the quote button, text is not copied into the quote tags if it is a node. The curious part is that the functionality is only stopped for nodes made after a certain time. This obviously means it is something to do with my code or modules, but if you can help me figure out what could possibly be interfering, I would be grateful.

Comments

Kripsy’s picture

Ah, I see the problem. It does not quote from a CCK field. I switched from a body field to a CCK field early on. I guess the next question would be, will you add support to select CCK fields as the quote field?

Kripsy’s picture

Title: No Quote Text With Node » Quote from CCK field
Category: support » feature
abaddon’s picture

it works if you hack it a bit, which proves it could be implemented
im using this with nodecomment so i have applied the related patch from the issue queue too

in quote.module, find $quote = $parent->body; where the $quote variable gets set
then below that there will be a $form['body_field']['body']['#default_value'] = .. assignment that sets the default value for that field
for cck geshifield ive changed this to something like

        $quote = $parent->field_paste_code[0]['sourcecode'];
        $quote_language = $parent->field_paste_code[0]['language'];
....
        $form['field_paste_code'][0]['#default_value']['sourcecode'] = '[quote='. $author .']'. trim($quote) ."[/quote]\n". $form['field_paste_code'][0]['#default_value'];
        $form['field_paste_code'][0]['#default_value']['language'] = $quote_language;

depending on your cck field you might have $quote = $parent->field_paste_code[0]['value'];
install devel and use dpm($parent); dpm($form); to check what to change easily

Zen’s picture

Title: Quote from CCK field » Quote from any field
Version: 6.x-1.x-dev » 7.x-1.x-dev
Component: Miscellaneous » Code
Priority: Minor » Normal

I think that this is more relevant to D7.

-K

nickonom’s picture

ivnish’s picture

Status: Active » Closed (duplicate)