SPB-站点设置-地区管理
查看全部词条命名空间:Main
导航: 上一页
- Spacebuilder 的地区程序上是可以实现无限级的,也就是可以无限的“添加字地区”;但是考虑到页面的展示问题,页面中最多显示3级地区
- 地区的管理如下图所示:
[后台管理]-> [管理]->[站点管理]->[地区管理]
其中注意几点:
- 在编辑和添加子地区的时候需要填写“排序序号”,意思是在同级地区中显示的排序,需要越小,越靠前显示。
- 地区在程序实现上是无限级的
- 同时,不同的应用可以设置不同的根地区,以及显示的地区深度:(web/spacebuilder.config)
A 圈子, 活动(商业模块还包括:招聘,招贴)
<application applicationKey="Club" applicationName="圈子" type="SpaceBuilder.Club.ClubDomainConfiguration,
SpaceBuilder.Club"
description=""
channelUrlRouteName="Channel_Club_Home"
userDomainRouteName="UserDomain_Club_Common"
clubDomainRouteName="Club_Home"
manageRouteName="Manage_Club_Home"
isPublicInUserDomain="true"
enableThemes = "true"
defaultTheme = "Default"
defaultAppearance="Default"
disabledDomainNames = "SpaceBuilder,spb"
clubDomainNameRegex="^[a-zA-Z0-9\-_]{2,25}$"
clubsPerPage="20"
logoHeight="160"
logoWidth="160"
smallLogoHeight="46"
smallLogoWidth="46"
originalLogoHeight="480"
originalLogoWidth="640"
clubLogosPath = "~/Uploads/ClubLogos/"
siteCategoryLevel ="2"
rootAreaCode=""
areaLevel ="3"
useFriendlyUrl="false"
friendlyUrlPattern="http://{0}.club.spacebuilder.cn"
enabledSharedApplicationIDs="111,112,113,114"
MaxApplicationMenuCount="6">
<globalEventExtensionModules>
<add name = "DisposeClubForDeleteUser"
type="SpaceBuilder.Club.Modules.DisposeClubForDeleteUser, SpaceBuilder.Club.Web" />
</globalEventExtensionModules>
解释: rootAreaID:顶级地区(例如:山东省的AreaID为9,如果设置为9,那么地区下拉列表中的第一级地区就是山东下面的市级地区:济南,青岛,威海.....) areaLevel:从顶级地区算起,显示几级地区
B 注册用户(包括个人用户和企业用户,如何设置顶级地区和地区的级别):
- 修改文件:Web\Themes\Channels\Default\Pages\User\Register.aspx (注册页面)
- 找到所有的控件:Control_AreasDropDownList
<% Html.RenderAction<ChannelController>(n => n.Control_AreasDropDownList("nowArea", null,
TempData.GetInt("nowArea", 0), ViewData.GetInt("AreaDepthInUserProfile", 1), "dropDownList")); %>
如果希望做山东省的门户,地区深度到街道:(例如:青岛市 市南区 泉州路)
<% Html.RenderAction<ChannelController>(n => n.Control_AreasDropDownList("nowArea", 9,
TempData.GetInt("nowArea", 0), 2, "dropDownList")); %>C 活动:
<application applicationKey="Event" applicationName="活动"
type="SpaceBuilder.Event.EventConfiguration, SpaceBuilder.Event"
description=""
channelUrlRouteName="Channel_Event_Home"
userDomainRouteName="UserDomain_Event_Common"
clubDomainRouteName="ClubDomain_Event_Home"
manageRouteName="Manage_Event_Home"
isPublicInUserDomain="true"
threadsPerPage="10"
commentsPerPage="50"
enableAnonymousUserSignUp="true"
siteCategoryLevel="1"
areaLevel="3"
rootAreaCode=""
thumbnailImageX="100"
thumbnailImageY="100"
detailsImageX="600"
detailsImageY="600"
logoImageX="160"
logoImageY="160"
smallLogoImageX="46"
smallLogoImageY="46"
eventDescriptionMaxLength="30000"
maxLengthPerReply="3000">
<attachmentSettings
fileSystemStorageLocation="~/Uploads/Events"
enableWatermark="true"
enableDirectLinks="false"
maxPictureCountATime="11"
maxAttachmentSize="5120"
maxImageWidth ="500"
maxImageHeight ="500"
extensions = "gif,jpg,jpeg,png,bmp" />
