国外设计欣赏网站 - DOOOOR.com

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,微信登陆

搜索

[Drupal模块] Drupal 7.X/6.X模块介绍:Domain Access多站/二级域名访问设置

[复制链接]
发表于 4-8-2012 20:33 | 显示全部楼层 |阅读模式
9 t( n0 O# l! W3 M: w
5 _) ^( w* ]2 l2 V: |
( L$ x4 c( v. m! @7 z$ |; W- W( o
6 {- A& T+ S' Z* o+ g6 u
' o7 g8 S% p( |5 o& P% G7 I
" h4 D" I+ u7 l+ p: I T


Domain Access

Screen shot 2011-09-16 at 11.50.21 AM_0.png

Please read the upgrade instructions for users of 7.x.2 before updating the code to a 7.x.3 release.

The Domain Access project is a suite of modules that provide tools for running a group of affiliated sites from one Drupal installation and a single shared database. The module allows you to share users, content, and configurations across a group of sites such as:

Domain Access(域名访问)是一套模块,提供一个Drupal安装一个单一的共享数据库从运行的一组关联网站的工具。模块可以让你分享跨组,如网站的用户,内容和配置:
默认情况下,这些站点在您的Drupal设施分享所有site。 领域前缀模块考虑到加前缀为高级用户的有选择性,动态。可以用同一套Drupal和数据库来简历多个子网站,分享用户、内容、设置等,例如:  . l, I2 A# O' |

  • example.com
  • one.example.com
  • two.example.com
  • my.example.com
  • thisexample.com <-- can use any domain string
  • example.com:3000 <-- treats non-standard ports as unique

By default, these sites share all tables in your Drupal installation. The Domain Prefix module allows for selective, dynamic table prefixing for advanced users.


Technical background

The module uses Drupal's Node Access system to determine what content is available on each site in the network. Unlike other multi-domain modules for Drupal, the Domain Access module determines user access based on the active domain that the user is viewing, rather than which group or site the user belongs to. For more information about Node Access in Drupal, see http://api.drupal.org/api/group/node_access/7

模块使用Drupal' s结确定什么的通入系统内容是可利用的在每个站点在网络。 不同于Drupal的其他多领域模块,领域通入模块确定根据小组或选址用户属于的活跃领域的用户存取用户观看,而不是。 关于在Drupal的结通入的更多信息,看见。


This module uses some advanced Drupal concepts and requires that you understand and control your site's DNS configuration. See this case-study or this more recent Row Eleven Wine Co. post for more details about using Domain Access.

这个模块使用一些先进的Drupal概念并且要求您了解并且控制您的site' s域名服务器配置。  

You can also watch video of the DrupalCON Paris session "Managing Multiple Sites with Domain Access" (from 2009).

If you are looking for a module to provide subdomains to users and groups and do not need to affiliate content, take a look at Subdomain.

Upgrading to Drupal 7

If you use Domain Access on Drupal 6, these steps are required for a smooth site upgrade.

For users of 6.x.1 or 5.x., See the Domain Access UPGRADE.txt for complete instructions for upgrading to 6.x.2 or 7.x.

Release status

Drupal 7

The 7.x.2 branch is now bugfix only. It is stable and supported.

See the upgrade instructions for users of 7.x.2 before updating your site's code to 7.x.3.

Users of 6.x.2 versions may upgrade directly to 7.x.3 or 7.x.2.

Drupal 6

The Drupal 6 version is supported but now in bugfix-only mode. New features go into Drupal 7 and may get backported.

Drupal 5

Use at your own risk. Stable but unsupported.

Extension modules

The Domain Access module works by itself and needs no additional modules. Included in the download are these helper modules that extend the features of Domain Access.

Included in the Domain package for Drupal 6.x.2.0

  • Domain Alias 6.x.2 and higher only by bforchhammer. Allows you to specify subdomain aliases and domain name patterns for domain entries so that multiple hostnames are matched on a single domain entry.
  • Domain Configuration -- Allows you to change select system variables for each subdomain, such as offline status, footer message and default home page.
  • Domain Content -- Provides a content administration page for each subdomain, so that affiliate editors can administer content for their section of the site.
  • Domain Navigation -- Supplies a navigation block with three themes. Creates menu items for each subdomain, suitable for using as primary or secondary links.
  • Domain Path -- Enables custom path aliases per domain.
  • Domain Prefix -- Provides a user interface for enabling select database table prefixing for use with subdomains. The Drupal 5 version is not fully functional on pgSQL, but Drupal 6 version is.
  • Domain Settings -- Exposes domain-sensitive variable settings to most configuration forms. Requires Domain Conf.
  • Domain Source -- Allows editors to set a primary source domain when links are written to content from other domains.
  • Domain Strict -- Forces users to be members of domains in order to view content. This is a sample extension module that uses the API.
  • Domain Theme -- Allows separate themes, theme settings and colors for each subdomain.
  • Domain User -- Allows for the automatic creation of subdomains for registered users.
  • Domain Views by mrichar1 and nonsie -- Provides Views integration for Views 5.x.1 and 6.x.2 or higher.

Linked items are stand-alone modules in the Drupal 7 release.

Stand-alone Projects

To speed development of new features, I will be spinning certain aspects of the Domain Access suite into separate projects, starting after the stable 6.x.2.0 release.

  • Domain Path. Allows per-domain path aliases for nodes. (Drupal 7 only).
  • Contributed Modules

    A number of modules have been contributed by other developers to extend the features of Domain Access.

    Credits and examples

    Development is sponsored by Palantir.net.

    Original development was sponsored by Morris DigitalWorks with an assist from DZone.

    Developer's API (Drupal 6) is online at http://api.therickards.com/api/domain

    Project Information

    Downloads

    |2011-2026-版权声明|平台(网站)公约|DOOOOR 设计网 ( 吉ICP备2022003869号 )

    GMT+8, 2-12-2025 13:14 , Processed in 3.622517 second(s), 256 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2021, Tencent Cloud.

    快速回复 返回顶部 返回列表