Hi Suneel,
Yeah that is also possible. Therefore I said in the beginning there are many solutions possible. That is the brilliancy and what I love from Kentico.
We for example use always one PageBase that we call Metadata and all page types inherit from this “PageBase” metadata. We use this to put fields inside which we need in all other pages/documents. For example description or teaser image. Of course you can also add here the fields of the Hero Banner.
But in your example you can also create an page type for the Hero Banner and make an field in a page type where you can select the hero banner.
In our last project we have also a Hero Banner and also we have a Metadata (PageBase) page type. We put in the Metadata page type also a field to select the Hero Banner(s) you wanted.
We did it this way so you can easily add and change fields in this page type Hero Banner, if you do that in the Metadata (PageBase) you need to go through all page types that inherits from this PageBase because Kentico adds the new fields add the top that is not always what you want.
Also an advantage of separate the Hero Banner is that you can add the Hero Banners in the content tree and change the order, or you can choose the same Hero Banner for multiple pages.
The field we added looks like this:
Form control : Multiple choice because in our case we wanted to have the possibility to select more then one image for an slider on the top of the website, bit this can also be drop-down list.
Data source : SQL Query with this query
SELECT DocumentGUID, HeroBannerTitle
FROM View_HeroBanner_Joined
WHERE NodeSiteID = {%CurrentSite.SiteID|(identity)GlobalAdministrator%}'
There are no wrong solutions you can do it both ways and both ways have there advantages and disadvantages. Good luck with developing and searching your way in Kentico.
If this answer helped you, please vote for my answer :-)