I have several CCK forms for users to fill out. The final output is displayed on the node page like so:
Field name: data
However, when I go to the printer friendly page it looks like this:
Field name:
data
How can I fix this?
Thanks,
David
http://www.FloridaPets.org
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | patch_print_cck_css2.txt | 669 bytes | jcnventura |
| #4 | patch_print_cck_css.txt | 600 bytes | jcnventura |
| #1 | printerfriendly.gif | 10.9 KB | tknospdr |
Comments
Comment #1
tknospdr commentedSorry, meant to add pics.
Comment #2
jcnventuraIf that's what comes out of the drupal_render() call that eventually calls the CCK module, I don't really know what can be done about it..
Can you provide the 'View source' of the two versions of the page? I may be able to understand the problem better if I see why it appears..
João
Comment #3
tknospdr commentedHere's the source of a standard page:
deletedAnd here's the friendly version:
deletedThanks,
David
Comment #4
jcnventuraHi,
Thanks for the data.. You can edit it now to remove the HTML sources as I no longer need them.. I have tracked the problem to the lack of a CSS import. I would like to ask you to test the attached patch and see if it solves all your problems.
I need to put an 'if module cck is installed' around this code, but other than that, if it works for you, it will be the code committed.
João
Comment #5
tknospdr commentedSorry, I see no changes in my output. The patch didn't give me any errors though.
Thanks,
David
Comment #6
jcnventuraI was almost sure that I had it..
Maybe something is wrong in the patch..
Can you provide the output of the two style lines in the printer-friendly version??
João
Comment #7
tknospdr commentedHope that's what you're looking for, and in case something didn't work right with the patch, here's the contents of the patched file.
Comment #8
jcnventuraHi,
Thanks for the data you provided.. I think I gave you an early wrong version of the patch by mistake.. In the second style line, it should have been:
I don't have the right version here with me, but I will try to give it to you still today..
Sorry for the mistake..
João
Comment #9
tknospdr commentedGood, waiting with baited breath.
Ya know, I had sushi for lunch. ;)
Thanks,
David
Comment #10
jcnventuraHi,
Final patch version.. If this works, I will commit it as it is.
You will need to apply it to a clean version of the module.. You can either dowload it again, or you can simply delete the line added in the previous patch.
Crossing my fingers :)
João
Comment #11
tknospdr commentedThat seems to have done the trick! Thanks alot!
David
Comment #12
jcnventuraI have just committed the fix. It will be in the latest dev version in a few hours.
João
Comment #13
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.