Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > My own WebPart doesn't work View modes: 
User avatar
Member
Member
Mirkovitch - 1/19/2010 11:21:14 AM
   
My own WebPart doesn't work
Helo, I have some problems with implementation of my own web parts on a kentico site. Let me explain:

I'm creating my own Webparts using same JavaScript. When I tast it in my environment it works great. Then when I put the exact code on a kentico Site- nothing works anymore.

I am testing one control for croping images. I have one dll in Bin folder, registered in kentico web.config on
<HttpHandlers>
<add path="Sample.axd" verb="*" type="Sample.Control.HttpHandler" validate="false"/>
</HttpHandlers>

Control works but the image is not displayed, when I bug it I find one strange thing:
IN MY ENVIRONMENT: <Img Src="Sample.axd?cropCacheId=d8ce3799-3cef-4d68-8cf2-d864eb99dd3f"
IN KENTICO: <Img Src="../Sample.axd?cropCacheId=d8ce3799-3cef-4d68-8cf2-d864eb99dd3f"

The only diferent is thet someone-something puts ../ infront of Sample.axd

Why is this happening, how can I solve this?

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 1/20/2010 4:10:14 PM
   
RE:My own WebPart doesn't work
Hello,

Could you please try to turn off the URLs output filter?

You can do it in:
Site manager -> Settings -> Output filter -> Site: <your site> -> Excluded resolve filter URLs: /

Does it help?

Best regards,
Helena Grulichova