Browse Source

CmsKit Tags presentation

pull/6821/head
enisn 6 years ago
parent
commit
16ff0a25f2
  1. 24
      modules/cms-kit/host/Volo.CmsKit.Web.Unified/Pages/Index.cshtml
  2. 1
      modules/cms-kit/host/Volo.CmsKit.Web.Unified/Pages/_ViewImports.cshtml

24
modules/cms-kit/host/Volo.CmsKit.Web.Unified/Pages/Index.cshtml

@ -8,6 +8,7 @@
@using Volo.CmsKit.Public.Web.Pages.CmsKit.Shared.Components.Rating
@using Volo.CmsKit.Public.Web.Pages.CmsKit.Shared.Components.ReactionSelection
@using Volo.CmsKit.Public.Web.Pages.CmsKit.Shared.Components.Contents
@using Volo.CmsKit.Web.Pages.CmsKit.Shared.Components.Tags
@model IndexModel
@inject IStringLocalizer<AbpUiResource> Localizer
<h1 class="text-center">CMS Kit DEMO</h1>
@ -17,11 +18,20 @@
<abp-blockquote class="text-center">
@await Component.InvokeAsync(typeof(ContentViewComponent), new { entityType = "quote", entityId = "1" })
@await Component.InvokeAsync(typeof(TagViewComponent), new
{
entityType = "quote",
entityId = "1",
tags = new List<string> { "a", "b" }
})
</abp-blockquote>
</abp-card-body>
</abp-card>
<abp-row>
<abp-column size-md="_6">
@if (GlobalFeatureManager.Instance.IsEnabled<RatingsFeature>())
@ -72,3 +82,15 @@
}
</abp-column>
</abp-row>
<abp-row>
<abp-column size="_12">
@await Component.InvokeAsync(typeof(TagViewComponent), new
{
entityType = "IndexPage",
entityId = Guid.Empty.ToString(),
tags = new List<string> { "a", "b" }
})
</abp-column>
</abp-row>

1
modules/cms-kit/host/Volo.CmsKit.Web.Unified/Pages/_ViewImports.cshtml

@ -3,3 +3,4 @@
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bootstrap
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bundling
@addTagHelper *, Volo.CmsKit.Public.Web
@addTagHelper *, Volo.CmsKit.Common.Web

Loading…
Cancel
Save