I want to have the physical path to the image file print out on the node that image is displayed on, for a file sharing type site. I can't make heads or tales of how modules handle theming. I'm currently migrating my XOOPs site to Drupal, I would like to get the image page to have image info fields like this: [...]
Can anyone help me?

Comments

sun’s picture

We want to add #type => 'image' for drupal_render() in Image 2.x, and pass a structured array to node view instead.

Anonymous’s picture

I'm not a developer, so I don't know what that means. I just need to output specific information, and Image doesn't use templates, so it's confusing to me to figure out how to get this in there where I need it.

Anonymous’s picture

Can someone please help me with this? It shouldn't be this hard to make such a basic modification using already existing variables?!?

joachim’s picture

You can use Views to create the sort of thing you've linked to. You can get the path of the image file as a field in your view.

Anonymous’s picture

right, but I can't add the pre-formatting options, like quick copy for posting to forums or HTML, can I?

joachim’s picture

Status: Active » Closed (fixed)

You can format your view fields however you want -- just include the HTML code to turn the the path into an INPUT widget like in your example, or use theming.
This is something I've done on one of my sites, and it could feasibly be useful as a module that provides a handler for views... if I code this up will let you know :)

Anonymous’s picture

Hmm, interesting, I'll have to look at Views a bit more later on today. I'm a little unsure about how gallery will work, if the thumbnails aren't pointing to nodes but to views instead? And when someone creates an image content type node, what will they see when it's saved? Won't they just be taken to their node, not to the view with the fields included?

Anonymous’s picture

Issue summary: View changes