Hoping against hope that I'm missing something, but here goes.
I'm using the image_attach block to display an attached image alongside a node, in the sidebar. Is there a way to theme that block to remove the link to the image node?
I've looked through image_attach.module, and I can't see a themeable function that looks like it would do the trick. I've actually played with a bunch of them, but they don't seem to have an effect on the block.
Failing that, is there a way to get the attached image to display in a sidebar block without the link? Can anybody point me to a snippet?
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | 445074.image_attach-theme-block.patch | 2.28 KB | joachim |
Comments
Comment #1
escoles commentedI've worked around this by creating a block over-ride template for image_attach and disabling the href by search and replace, thus:
This does seem to me to be an awkward approach, though, in a couple of ways. I'd still like to know if there's a more efficient way to theme away this link, which I have a hard time imagining wanting in any application where I'd use image_attach (and especially the image_attach block).
Comment #2
joachim commentedYeah, lack of a theme function here is a bit rubbish.
If you feel able to provide a patch, please do :)
Comment #3
joachim commentedOn the other hand, I'd like to get more views support into this module, so the block could get provided with a view in the near future :)
Comment #4
escoles commentedMy holy grail is to be able to do a complete integration without having to code anything but stylesheets. So a view might be a better approach. But (and maybe it's just that I haven't worked with the new Views enough) how would you match the attached image to the current node?
As for contributing a patch myself: I doubt you'd want to use it if I did. Seriously ;-).
Comment #5
2noame commentedI'm stumped with this same puzzle. Is there any way to match a thumbnail of the node's image within an adjacent block using Views? I can't figure out a way. I'd use the attached images block, but that one doesn't even show. Plus I'd prefer finding a Views method for more control.
Comment #6
joachim commented> I'd use the attached images block, but that one doesn't even show.
Try the latest beta. We fixed that bug.
> Plus I'd prefer finding a Views method for more control.
I've not checked views is working okay with the new multiattach stuff.... might be a bug to fix :)
Comment #7
2noame commentedI'm confused. I installed beta1, had been using alpha6, but when I went to use update.php, it showed as no updates available for any of the image modules. I ran it anyway as I always do when having uploaded a new module version but still the attached images block does not appear in the right-side area where I put it. So then I made it manually update attached_images in update.php to 6102, and got the error:
"user warning: Duplicate column name 'weight' query: ALTER TABLE image_attach ADD `weight` INT NOT NULL DEFAULT 0 in /drupal/includes/database.mysql-common.inc on line 298."
But I figure that's just because I made it re-run 6102 when I didn't need to, right? So how do I get this to show? Do I have to manually make update.php update the rest of image? If so, why doesn't it just do that automatically when I run update.php?
Comment #8
joachim commentedYeah, that'll be because you re-ran it.
See http://drupal.org/node/426724 for how to fix this now.
Comment #9
2noame commentedI'm sorry, I don't understand just what to do to fix this. I tried running that patch but it fails. Do I need to change something manually in the module code itself?
Just to confirm, my problem is not making the block appear in the admin page. I see it there and have assigned it to display on the right-hand side of my site. It's just that it never actually shows up where it's supposed to. This patch seems to only fix it appearing in the admin page?
Comment #10
alanburke commentedComment #11
joachim commentedPlease go see that issue and comment there, not here.
Comment #12
joachim commentedCommitted the attached patch.
Comment #14
nikhilpatilnp commentedhey friends i m totally new in drupal i m trying to explore it more
now according to my project i have to add a menu bar in drupal
i m using drupal-6.15 so i made a menu bar in block and made it appear to all page but
i want to include the css of that menu pls help me how to include the css in the drupal
pls i got very less time for my project
and yes sorry for spelling mistake
Comment #15
joachim commentedPlease don't repurpose closed issues. I suggest you ask on the forums.
Comment #16
joachim commentedOh and it was set to 'normal' too before you mucked about with it :/
Comment #17
fax8 commented@nikhilpatilnp I second joachim comments. Moreover CSS module issue tracker is only for issues using the CSS module. If you want help creating your CSS files please ask here: http://drupal.org/forum/3