Widgets from web parts that inherit properties from other web parts

lawrence whittemore asked on March 4, 2015 17:17

I created a new web part that inherits it's properties from another so that I could add one extra field and make it into a widget. However, I am not able to select the web part when trying to create a widget.

Recent Answers


Trevor Fayas answered on March 4, 2015 20:52

Have you tried going to System -> Restart application? It's possible the system's cache isn't seeing the new web part yet because the system's cache didn't register it.

0 votesVote for this answer Mark as a Correct answer

Reza Zareian Fard answered on March 5, 2015 09:54

I faced same issue before but couldn't find a solution so Instead of inheriting I duplicated webpart

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on April 6, 2015 14:15

Hi,

This is by design - it is not possible to create a widget from a inherited web part. The solution is to clone/duplicate the original web part as mentioned by Reza.

0 votesVote for this answer Mark as a Correct answer

Elmar Höfinghoff answered on August 8, 2016 14:36 (last edited on August 8, 2016 14:37)

Why? This would be very useful. Is there a technical reason not to alow this? Currently I have a base web part with fields for e.g. headline text, headline type, width on mobile, on tablet, etc. When the customer needs an additional field in all widgets, I am forced to go through all my Web Parts and change it redundantly multiple times. This is very awful. Inheritance works fine with Web Parts - why is it not possible to make Widgets from these Web Parts to get this feature for Widgets as well?

0 votesVote for this answer Mark as a Correct answer

John Kane answered on December 5, 2017 21:00

I just experienced in Kentico 10 the same issue of not being able create a widget from a web part that inherits from another. It was my suspicion that this was the case at the time, so I turned to the documentation but see no mentioned of the caveat. These are the documents.

https://docs.kentico.com/k10/custom-development/developing-web-parts/creating-inherited-web-parts https://docs.kentico.com/k10/developing-websites/preparing-widgets-for-users/creating-widgets

The note would be useful as an Info or Warning note, before the developer goes to the work of customizing their inherited web part.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on December 6, 2017 15:27

Hi,
Thank you for your note - at the end of each documentation page there is a button for sending feedback - do not hesitate to use it! your notes and comments will go directly to the Kentico technical writers team.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.