API Questions on Kentico API.
Version 6.x > API > Webpart - missing properties View modes: 
User avatar
Member
Member
Regus - 9/20/2012 5:05:38 AM
   
Webpart - missing properties
I've created a new web part. The goal is to create a fancy webpart to display news items. When I open the properties of the web-part, I don't see the tab "Content" or "Content Filter". Could anyone explain to me why ?



User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 9/20/2012 5:34:13 AM
   
RE:Webpart - missing properties
Hi Regus,

this is caused because propably you don't have permissions to access these tabs. Site Administrator have to enable it.

In the case that you are admin...
Which internet browser are you using and which version of the Kentico? Have you applied the latest hotfix?

Best regards,
Martin Danko

User avatar
Member
Member
Regus - 9/20/2012 6:21:18 AM
   
RE:Webpart - missing properties
Hi Martin,
I am the administrator. I'm using Kentico 6.0.23 SP1 and internet explorer 9.
How should I enable these properties ? I assume via site administration --> development --> webparts. I select the webpart. And then ?

Thanks
Bart



User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 9/20/2012 8:08:40 AM
   
RE:Webpart - missing properties
Hi Bart,

I was unable to reproduce this issue on IE9 and Kentico 6 SP1 but admin has access to all properties by default.

I don't know exactly which WebPart are you speaking about... it is your own WebPart?

Could please apply the latest hotfix for the Kentico v6 - 6.0.49?
It is possible for you to try it in the different browser?

Best regards,
Martin Danko

User avatar
Member
Member
Regus - 9/20/2012 8:53:06 AM
   
RE:Webpart - missing properties
Hi Martin,
I'm not sure you understand the problem, so I try to explain it differently.
I created a simple webpart in visual studio. A simple "hello world" web part. This works fine. The next step would be to assign certain cms.newsitems to it. So I think I have to do this in the webpart properties, go to the properties of the webpart. I would expect to find a tab called "content" where I could configure the path of the newsitems. But I cannot find the tab. The same for "Content filter, Transformations, ...".

Regards
Bart

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 9/20/2012 9:22:46 AM
   
RE:Webpart - missing properties
Hi Bart,

Have you followed the Developing web parts tutorial in the DevGuide? And also the article Setting web part properties dynamically in your code could be helpful for you.
If you want to show the newsitems you have to include cmsrepeater.

I don't exactly understand why you want to create this kind of the WebPart, you can clone the default news WebPart and customize it.

Best regards,
Martin Danko

User avatar
Member
Member
Regus - 9/21/2012 3:22:48 AM
   
RE:Webpart - missing properties
Thanks again for the info. I didn't know about the clone-method. So I will use that approach, which is indeed better. I followed the instructions from the devguide. Go to webparts, choose the webpart (in my case the latest news webpart) and click on clone.
According to the devguide, it should create a new physical file (ascx and cs) in the filesystem under webparts, but I cannot find the file. Any idea why ?

Thanks
Bart

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 9/21/2012 5:22:24 AM
   
RE:Webpart - missing properties
Hi Bart,

If you go through the Web part management article, then following it, in the CMSSiteManager -> Development -> WebParts you will find there are 2 options:

1. WebPart is inherited (e.g. News List), there is the field "Inherited from:" and if you clone this kind of WebPart, no physical files are created because it is inherited. Just for example: News list is inherited from the Repeater. So if you click "Clone WebPart" there isn't option for files path in the dialog window.

2. WebPart isn't inherited (e.g. Repeater), there is no inheritance. If you click "Clone WebPart" there is special field for files path in the dialog window (make sure that "Clone web part files" is checked).

Best regards,
Martin Danko

User avatar
Member
Member
Regus - 9/21/2012 7:42:31 AM
   
RE:Webpart - missing properties
Hi Martin,
Thank you for your help on this. I finally managed to create the webpart I needed.
Bart