Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Editable Image Visibility View modes: 
User avatar
Member
Member
nanite2000 - 4/11/2013 6:14:19 PM
   
Editable Image Visibility
Hi,

I'm using Kentico v7.0.26.

I have added an 'Editable Image' web part into one of my pages so that content editors can optionally add an image to the page.

I have added the following lines to the HTML Envelope section of the web part:

Content before:
<div class="image">

Content after:
</div>

I would expect the HTML envelope to only be rendered if an image has been selected, but that appears not to be the case. The HTML envelope is always rendered regardless of whether an image has been selected or not.

How can I hide the Web Part and/or HTML Envelope if no image is selected?

Thanks!

User avatar
Certified Developer 13
Certified Developer 13
kentico-jx2tech - 4/11/2013 7:52:28 PM
   
RE:Editable Image Visibility
Consider using the Image CSS class property of the Editable image web part. You can then use that class to style the image rather than using the additional markup in the HTML Envelope.

User avatar
Member
Member
nanite2000 - 4/11/2013 8:19:14 PM
   
RE:Editable Image Visibility
kentico-jx2tech wrote: Consider using the Image CSS class property of the Editable image web part. You can then use that class to style the image rather than using the additional markup in the HTML Envelope.

OK, fair enough.

But isn't this behaviour inconsistent with other web parts? All other web parts will hide the HTML envelope when they have no content.

Why is this one different?

User avatar
Certified Developer 13
Certified Developer 13
kentico-jx2tech - 4/11/2013 8:37:46 PM
   
RE:Editable Image Visibility
I am not sure. It sounds like a good feature request.

User avatar
Member
Member
nanite2000 - 4/11/2013 8:43:02 PM
   
RE:Editable Image Visibility
kentico-jx2tech wrote: I am not sure. It sounds like a good feature request.

It sounds like another bug to me.

User avatar
Certified Developer 13
Certified Developer 13
kentico-jx2tech - 4/11/2013 8:55:13 PM
   
RE:Editable Image Visibility
I think you are right. It does not render the HTML Envelope in v5.5R2 when there is no image.

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 4/12/2013 9:14:50 AM
   
RE:Editable Image Visibility
Hello,

You probably sent us also a report with this bug. So now I see your point, and yes, you're right.. I will forward this to our developers as a bug in v7.

Best regards,
Martin Danko

User avatar
Member
Member
david - 5/13/2013 11:35:48 PM
   
RE:Editable Image Visibility
Hi there,

I was just wondering if there was an estimate as to when a fix for this issue might be in the next Hotfix? I'm currently using 7.0.35 and am getting the HTML envelope rendering if no image has been selected. Thanks!

Regards,
David

User avatar
Kentico Support
Kentico Support
kentico_filipl - 5/18/2013 4:29:11 AM
   
RE:Editable Image Visibility
Hi David,

We had a little miscommunication problem with our developers and they were told about this bug only a few days ago so if they confirm it really is a bug, hopefully it will be fixed in the next planned hotfix (7.0.37).

We are sorry for the delay.

Best regards,
Filip Ligac

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 5/20/2013 5:12:47 AM
   
RE:Editable Image Visibility
Hi David,

This bug was already fixed today and it will be fixed in the next hotfix which will be released on Friday. I'm very sorry for the delay from our side.

Best regards,
Martin Danko

User avatar
Member
Member
david - 5/20/2013 9:46:23 PM
   
RE:Editable Image Visibility
No worries at all, thanks for the update Filip and Martin.

Regards,
David

User avatar
Member
Member
donnaklinton-yahoo - 1/15/2014 9:40:02 PM
   
RE:Editable Image Visibility
HI there
For image editing,i usually do that using an image processor which supports to do any image processing issues.It would be more convenient if you own a fine third party image tool.You can also try to add an image tool to help you out.Most of the image tool offers a free trial for new users.You can have a try before you decided to own it.Best wishes.