Hello,

I'm trying to use the module with Display Suite and it doesn't works.

I have a content type with a CCK image field, I create some nodes with that field empty, then I use Display Suite to modify the layout of that content type in full node display and I put the CCK image field in a region (left, middle, right...).

When I display the node, nothing is displayed, even in the HTML source.

I'll try to look at the code this afternoon, but if someone could help with this, it can be really helpful for me.

Thanks!

CommentFileSizeAuthor
#2 ScreenShot116.jpg45.52 KBPol
#2 ScreenShot118.jpg90.72 KBPol
#2 ScreenShot117.jpg116.83 KBPol
#2 ScreenShot119.jpg106.42 KBPol
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

naxoc’s picture

I don't really have a lot of experience with DS. Could you maybe upload a screenshot or two of your settings? Or maybe export them if that is possible?

Pol’s picture

FileSize
106.42 KB
116.83 KB
90.72 KB
45.52 KB

Hello Camilla,

DS is a module who allows you to modify the layout of the Node content.
It's really handy, it's a good time saver for quick site with custom node layout.

Here you can see the screenshot on a fresh Drupal install.

1) The content type Page. (ScreenShot119.jpg)
2) The DS config for the Page content type. (ScreenShot117.jpg)
3) The Dummy Image configuration page. (ScreenShot118.jpg)
4) The rendered node through DS. (ScreenShot116.jpg)

If you need more help, I'm on the chat on G+ ;-)

naxoc’s picture

It works fine for me. Does it do this on all nodes?

I am little unsure what you mean by "I create some nodes with that field empty"? You have to have an image in the field - or at least have the system think there is one for dummyimage to display it.

Pol’s picture

I mean that when I create nodes, I let the "Image CCK field" empty, so it's dummyimage who provides the images.

Isn't the right way to use it ?

naxoc’s picture

No, the way dummyimage works is that it either replaces the images that are uploaded or replaces missing images. So the CCK field has to contain a reference to an image.

Does that solve your problem?

Pol’s picture

Oh ok, I think there's a big misunderstanding here for me. So the module is only runned when we upload an image into CCK field then.

Do you think it can be possible to get it working if there is no image uploaded in the field ?

naxoc’s picture

Hmmm. Not the way the module works right now. I understand the need for this though, so let me think about a solution. I'll get back to you in an hour or so :)

naxoc’s picture

Could you maybe explain what the use case is? Is it for mockups?

Pol’s picture

Ok it's clear then.

I'm looking for a way to provide a default image (using dummyimage, why not) automatically when there is no image uploaded in the node.

So the future client knows that there will be an image there and he will have to upload one.

Thanks, I'm refreshing this page every 5 min ;-)

naxoc’s picture

OK, then I dont think you need dummyimage. You can take advantage of the default image field on images. Just upload a deafault image on the image field configuration. Would that solve it?

Pol’s picture

Yes but I MUST upload a default image and I don't want to. Is it possible to use dummyimage for that ?

Maybe we should have a look at filefield module ?

naxoc’s picture

Why don't you want to upload a default image? Dummyimage takes over if you set it to be used for all images.

Pol’s picture

I know it can be weird, but I'm looking for a fast solution.

I don't want to use default image because I'm exporting configuration into features and I don't think that feature will export default image (not tested yet).

I like dummyimage because it generates an image with the size inside, it helps alot the client.

naxoc’s picture

Status: Active » Closed (works as designed)

Dummyimage cannot solve that. It's not really meant for that. But play around with default images in combination with dummyimage. There should be a way to do it that way :)

Pol’s picture

Okay no problem, thanks for your time !

naxoc’s picture

:)