Hi,

I have been playing around a bit with disknode and inline. I like features of both modules. One problem with inline is that you have to upload the files on the page (with "attachment"). One thing that I would like to have on disknode is the ability to place the links to files I have chosen via disknode inside the body of my page/node, and eventually not one after another, but wherever I want in the body of the page/node. I suppose that with theming I might be able to place the links to disknode within the body (although I don't know how to do that now) but could I also place them anywhere on the page, or they would have be following each other? (basically I want a mix of inline and disknode). Any hints?

thanks in advance!
boris-antoine

Comments

sun’s picture

Title: would like the files listed by disknode to be displayed "inline" » ability to display disknodes "inline"
Component: Miscellaneous » Code

I don't know how disknode attaches files to nodes but I could imagine it is done almost the same way like upload.module or attachment.module. Since inline.module is able to handle attachments now, I suggest this is a feature request for inline.module instead.

If disknode.module places all files asigned to a node into an object $node->disknodes this could be easily done by extending inline.module.

What does elmuerte think about that?

elmuerte’s picture

Status: Active » Closed (fixed)

disknode already places all files in the node

$node->disknodefiles is a array containing all the files atteched to the node by disknode, each entry is an object with the following properties:

fid: file ID in the table
filename: just the file name (e.g. basename)
filepath: full path to the file (within the files directory)
filesize: size of the file in bytes
filemime: the mime type
downloads: number of downloads

sun’s picture

Title: ability to display disknodes "inline" » ability to display disknodes inline
Project: Disk Node » Inline
Version: 4.7.x-1.x-dev » 6.x-2.x-dev
Status: Closed (fixed) » Active

Moving this issue to inline. Don't know if I'll have the time to implement this soon but it's definitely worth to do this.
Maybe we need a more generic way to support inlining of files supplied by other modules - through inline extensions (XML or PHP).

boriso’s picture

Thanks Sun!

Just for the sake of complete information, I point to a forum topic that I created just before I made a feature request for inline/disknode module. Here is the link :

http://drupal.org/node/68795

/boriso

sun’s picture

Status: Active » Postponed

Marking this issue as dependent on http://drupal.org/node/80170

sun’s picture

Status: Postponed » Closed (won't fix)

The disknode project seems to be dead. Marking as won't fix for now.