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
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="UmbracoExtending.District" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add UmbracoExtending.District --version 1.0.0
#r "nuget: UmbracoExtending.District, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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+

使用说明

  1. 在VS中,创建项目并使用NuGet安装Umbraco 7.14.0

  2. 在VS中,继续使用NuGet安装UE.District组件到创建的Umbraco 7.14.0项目中

  3. 发布站点并部署到IIS,浏览站点进行安装CMS

  4. 站点安装完成,将项目中App_Data\ueDistrict.sql导入到本项目的数据库中[1]

  5. 进入CMS后台创建Data Types[2] [3], 如下图所示:

    image

  6. 进入Settings -- 创建Document Types调用创建的三级联动Data Types

    image

  7. 进入Content创建页面,如下图所示:

    image

  8. 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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,088 4/16/2019

Publish version 1.0.0.