Closed (fixed)
Project:
iPaper
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
21 Jun 2008 at 03:03 UTC
Updated:
12 Feb 2009 at 14:10 UTC
nbchip in #272321: CCK field:
Quickswitch option would be usefull for people who already have lots of nodes with attached documents... but maybe its enough to only mention that quickswitch exist ;) http://www.scribd.com/platform/documentation/quickswitch
Comments
Comment #1
rares commentedThe June 20 (or CVS if you can't wait) will have a section in the module administration that links to the Scribd Quickswitch page and allows you to paste the JS code from them. You can test it and let me know how works!
Comment #2
rares commentedComment #3
rares commentedIn order to have the Quickswitch iPapers display correctly, you need to add the following CSS with your Quickswitch code (in the box on the iPaper Configuration page). I will include this in the box by default in the future versions. On some themes it will still not come out right, maybe the trick there is to add
height:100%;next towidth:100%;Rareş
Comment #4
vkr11 commentedRares,
Adding this code to the quickswitch box made the attachment disappear. However the attachment was fixed once I removed the 3rd line
I am using garland on Drupal 5.7.
Thanks,
Victor
Comment #5
rares commentedI think it has to do more with the browser understanding the code.
On Firefox and IE7 the code worked, and I tested it with several themes on Drupal 5 and 6. What the display:none line was doing is hiding all the table cells, so that the next line (tr td:first-child) would override that and display the first cell in each row - the link to the document.
I was reading about the :first-child CSS pseudo-class and it says that you need a tag for it to work in IE. I assume you have that, so the next thing must be the version of the browser. According to http://www.w3schools.com/CSS/css_pseudo_classes.asp, IE support for :first-child is only available beginning with version 7.
So here's an a version of the CSS that should work properly on everything other than IE<7 and on IE<7 it will just show all the cells. Let me know if it works.
Rareş
Comment #6
vkr11 commentedYeah that worked with IE7 & Firefox. However it is still broken with IE6 (the whole table is invisible with IE6). Removing the third line
Is there a way we can comment out it only for IE6 but visible in IE7 & Firefox?
Sorry I tried few things but I am not much of a CSS expert.
Thanx,
Victor
Comment #7
rares commentedHmm...
How does this look?
Comment #8
vkr11 commentedWorks like a champ. I tried it with (D5.7 & Garland and here are the results):
IE 7 & Firefox 2 - Works Great
IE 6 - Displays the ipaper in the the two column table (right side is attachment size).
Thanks for looking into this,
Victor
Comment #9
rares commentedExcellent.
Comment #10
rares commentedHey, actually I just did away with that. The new development version (which will also become the beta) now uses hook_nodeapi to change the code that the upload module adds, stripping everything but the links. This eliminates the need for CSS.
Comment #11
rares commentedForgot to say that you need to run
"UPDATE system SET weight = 1 WHERE name = 'ipaper'" (add table prefix if necessary)
on your database for it to work (or uninstall and reinstall)
Comment #12
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #13
spiffyd commentedThe quickswitch documentation link no longer works. Do we still need to specify QS code?
Comment #14
rares commentedI believe they are no longer supporting Quickswitch. I can't find it on their site.
Comment #15
spiffyd commentedThen module should be updated to reflect this!
Comment #16
rares commentedI've added text in the administration section (-dev release) telling people that this has been deprecated. Hopefully a future release will offer similar functionality.