This widget represents the banner.
name | Specifies the alias of the banner. |
---|
banner | It returns the banner object having all the details of the banner like name, image(Relative URL), URL, title, subtitle, publish etc.
|
---|
<ms-banner :name="home_banner1">
<div v-if="banner.image">
<a :href="banner.url">
<ms-image :src="ms.filters.image(banner.image, '1000x1000')" :alt="banner.title"></ms-image>
</a>
</div>
<div> {{banner.title}} </div>
<div> {{banner.subtitle}} </div>
</ms-banner>
<div ms-widget="ms.banner" ms-data-name="banner_name">
<div v-if="banner.image">
<a ng-href="{{banner.url}}"> <img ng-src="{{banner.image|image:'1024x1024'}}" alt="{{banner.title}}"> </a>
</div>
<div> {{banner.title}} </div>
<div> {{banner.subtitle}} </div>
</div>