Hi,

I dunno if this is the case now, but if not, would be a useful feature, to be able to use an iPaper node as a CCK field. This way we can have an article, or page, with several node types, text, image, AND iPaper.

As I'm trying to find a way to include pdf files into my node and display them to the user.

Thanks

Comments

noomz’s picture

Try `quickswitch` option in iPaper module configuration.

kamleshpatidar’s picture

hi @noomz,
i am using Ipaper Module on my drupal site. Ipaper content type is working fine. But i want to use Ipaper in another content type as file attachment, so i am using Quickswitch. i pasted code directly from Scribd, but i get error Could not slurp (Error No. 519). how to get rid out of this problem?

Kamlesh Patidar

rares’s picture

keesee’s picture

Great idea and great project!

I second the request for CCK. Quick switch is an option, but havng a field that allows you to handle this within CCK allows you to fully expliot the power of Ipaper and ck together. example would be .. add menus to listings of dinning locations.... chapters or indexes to books. notes to projects and tasks. etc...

the only currect way to user this... while retaining.. full control over the look is using the ipaper content type and not by adding ipaper fields to cent type that you create.

Leeteq’s picture

Component: Miscellaneous » Code
Category: support » feature

+1

rares’s picture

Thanks for re-tagging. The module is close to the 1.0 stable release and after that I agree that the next step would be to begin work on a 2.0 branch for Drupal 6 which would offer this as a CCK field.
Are there any coders with CCK experience that would be willing to help with this?

andrewbenkard’s picture

A workaround for people who want "matching" ipaper PDF's to display alongside other nodes:

Use the nodesinblock module to pull ipaper teasers into other nodes. Into a sidebar region, for instance.
The thumbnail shows up and clicking it takes you to the ipaper node where the PDF is displayed inside the scribd widget.

You have to type each "matching" node path into the "Visibility Settings" of the node, which is inelegant, but this is tolerable for small/slow-moving sites.

Looking forward to CCK integration! Thanks to rares for your efforts so far.

jody lynn’s picture

Subscribing to help code the new CCK-integrated branch.

youkho’s picture

Subscribe

BenK’s picture

+1 for CCK integration

amir simantov’s picture

+1 for CCK integration

CinemaSaville’s picture

+3 for CCK integration

rares’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev

I've released 6.x-1.0, which has many improvements over the previous versions. This should hopefully be a very solid solution for the months to come.
So I've created the 6.x-2 branch, which will host the working code for a version that is based off CCK. Does anyone think that this module should work with the filefield addon for CCK? As soon as we have any even minimally functional patches (you can send entire files, no need to create patchfiles), I can update the 2.x branch code.

@Jody Lynn, are you still able to help us get started? I made the code much more modular, so everything should be more straightforward.

jody lynn’s picture

I have limited time, but I'll take a stab at it on Monday for Drupal Day (previously known as Columbus day)

CinemaSaville’s picture

Has there been any progress on this?

MatthijsG’s picture

+1 subscribe :)

pingers’s picture

Well, there's already a module to do it. I'm sure it wouldn't be hard to integrate the cck functionality from that into ipaper.
http://drupal.org/project/scribdfield

rares’s picture

the contributor of scribdfield has already offered to help us merge these modules together. the idea is to build some of the ipaper features on top of his cck framework. there isn't an estimate as to when this will be done yet, but I will keep you posted.

BenK’s picture

Hey rares,

I was very excited to learn of your plans to join forces with the Scribd Field module maintainer. It will be the best of both worlds.

For instance, Scribd field doesn't have support for iPaper secure privacy controls, but of course, this module does (thanks to your awesome work!).

Any more updates on a timeline for merging the two projects?

Cheers,
Ben

andrewbenkard’s picture

> the contributor of scribdfield has already offered to help us merge these modules together.

+1
I will help with documentation.

Remon’s picture

any news about the merging thing?

jamesmcd’s picture

Keen on the idea of CCK integration, any news on progress with this as well as the merger with scribdfield?

rares’s picture

Unfortunately neither I or the scribdfield developer are able to work on merging the two modules during the next months. Is there someone in the community that can start working on this, perhaps even to do just part of the project?
I can provide explanations and support regarding the ipaper code, and I can also give you a Drupal environment where you can test your code. You will obviously also get credit for your contribution on the module's page.

ChaosD’s picture

till the projects get merged - could anybody help me out echoing the thumbnail via php?
i tried this

<?php
$n = node_load($row->nid);
return $n->content['thumbnail']['#value'];
 ?>

$row_nid provides a node id

but it returns nothing at all (iam not a very good php programmer so forgive me stupud mistakes ;P )
i also tried to echo the image in devel php execution, wich also returns a empty field (title worked so i loaded the nid correctly - just to make sure) so i assume iam trying to echo the wrong thing. could you point me to the right direction?

rares’s picture

try invoking node_build_content($n) before referencing $n->content.
if you have more questions about this, you should open up a separate issue (support request) for this, as your question is not directly related to CCK or the merge.

ChaosD’s picture

just for the records : this code returns the thumbnail of the loaded node (here 3)

$node = node_load(3);  
$thumb =  theme('ipaper_thumbnail', $node);  
return $thumb; 
Dr Jay’s picture

subscribed

POVYLAZZZ’s picture

Looking forward for to this improvement....

POVYLAZZZ’s picture

I heard rumours that this module is going to step up and start using CCK. Great news but I decided to do more than just praise that ;)
There is a module alternate for iPaper. It is called Scribdfiel. it is based on Filefield. In may personal opinion FF is way cooler than just plain attachment function. I will add it`s module file code may be of some use.
I tried improving that module... However I have not succeeded... What a shame xD I wanted to add a thumbnail field with a direct link to file. May be I failed because I am novice at CCK but anyway I will add scribdfield module file modified by me since original module maintainers have not payed any attention...

Anonymous’s picture

+1