UmbracoExtending.District
1.0.0
Requires NuGet 1.0.0 or higher.
dotnet add package UmbracoExtending.District --version 1.0.0
NuGet\Install-Package UmbracoExtending.District -Version 1.0.0
<PackageReference Include="UmbracoExtending.District" Version="1.0.0" />
paket add UmbracoExtending.District --version 1.0.0
#r "nuget: UmbracoExtending.District, 1.0.0"
// Install UmbracoExtending.District as a Cake Addin #addin nuget:?package=UmbracoExtending.District&version=1.0.0 // Install UmbracoExtending.District as a Cake Tool #tool nuget:?package=UmbracoExtending.District&version=1.0.0
Umbraco Extending District
介绍
UE.District组件是基于Umbraco CMS自定义开发的Data Types三级联动
基本要求
Umbraco 7.14.0
.NETFramework 4.5.2+
使用说明
在VS中,创建项目并使用NuGet安装Umbraco 7.14.0
在VS中,继续使用NuGet安装UE.District组件到创建的Umbraco 7.14.0项目中
发布站点并部署到IIS,浏览站点进行安装CMS
站点安装完成,将项目中
App_Data\ueDistrict.sql
导入到本项目的数据库中[1]
进入Settings -- 创建Document Types调用创建的三级联动Data Types
进入Content创建页面,如下图所示:
Templates模板调用
var item = Model.Content.GetPropertyValue<string>("selections");
var obj = UmbracoExtending.District.DistrictUtil.ResolveDistrict(item);
省份:@obj.ProvinceName
城市:@obj.CityName
区域:@obj.DistrictName
备注
[1]
库中存在该表[dbo].[umbracoExtendingDistrict]
,请忽略此步骤
[2]
Property editor
选择Umbraco Extending District
[3]
默认是二级联动,选中Three Tier
则开启三级联动
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net452 is compatible. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 4.5.2
- UmbracoCms.Core (>= 7.14.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 1,115 | 4/16/2019 |
Publish version 1.0.0.