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

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,微信登陆

搜索

[Drupal模块] Drupal 7.X/6.X模块介绍:Domain Access 多层级网站建设数据关联共享

[复制链接]
发表于 4-21-2012 04:14 | 显示全部楼层 |阅读模式

模块介绍: 

可以用同一套Drupal和资料库来建立多个次网域网站,分享使用者、内容、设定等,例如:

- example.com 

- one.example.com 

- two.example.com 

- my.example.com


一些子模组:


Domain Alias: 

顾名思义,可以给你建立的domain再加上alias


Domain Configuration: 

这个模组能做到的, settings.php应该也可以,就是让你可以指定每一个domain的设定,如site name, theme, menu, ...


Domain Content: 

使用这个模组后,从Content management -> Content -> List看到的是所有的node,在list里面没法分辨出是哪个domain.使用这个模组,会从最上层加上一个Affiliated content的功能表,就可以分出这个node是属于哪些domain了. (如果有使用admin_menu,请记得rebuild menu)


Domain Theme: 

这个模组功能很简单,就是可以让每个domain都可以有独立的them.和Domain Configuration相同,其实用settings.php就可以做到了.


Domain Views: 

这个模组提供了和Views整合的filter和argument,可以利用他来过滤内容.但并不是每种type都有支援,譬如说node有,但comment就没有(6.x-2.0-rc6 )


下载地址:: 

http://drupal.org/project/domain



-------------------------------------------------------------------------------------------------------------------------------------




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.

升级到7.x.3release前请阅读upgrade instructions for users of 7.x.2

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 project【域访问项目】是一套模块,提供一个Drupal安装一个单一的共享数据库从运行的一组关联网站的工具。模块可以让你分享跨组,如网站的用户,内容和配置:

  • 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.

默认情况下,这些网站分享你的Drupal安装中的所有表[tables]。Domain Rpefix module[域前缀模块]允许选择性,适用于高级用户的动态表前缀。


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 

该模块使用Drupal的节点接入系统,以确定哪些内容是对网络中的每个站点。与其他多领域的Drupal模块,域访问模块确定用户访问基于用户正在浏览的活动域,而不是用户所属的组或网站。欲了解更多关于Drupal中的节点访问的信息,请参阅

http://api.drupal.org/api/group/node_access/7

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概念,你必须了解和控制您的网站的DNS配置。关于使用域名访问的更多细节:See this case-study看这个案例研究】,或者7 V5 b+ v9 h9 O! _" ^8 _; V) M more recent Row Eleven Wine Co. post

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.

如果您正在寻找一个模块提供子域用户和组,不需要附属内容, 可以看看Subdomain 。

Upgrading to/升级到 Drupal 7

If you use Domain Access on Drupal 6/如果你在用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/
    用户界面提供了有利的选择与子域使用的数据库表前缀。在Drupal $ T M$ I* o( { C; o' a 5的版本是不完全的pgSQL功能,但Drupal的6版本。
  • Domain Settings -- Exposes domain-sensitive variable settings to most configuration forms. Requires Domain Conf/公开敏感域的变量设置,大多数配置形式。需要域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/强制用户是域的成员才能查看内容。这是一个使用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/挂钩项目是独立的模块,在Drupal 7发布。

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




    ----------------------------------------------------------------------------------------------------------------------

    本文由国外设计欣赏论坛-www.doooor.com---Howfar翻译整理,谢谢!

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

    GMT+8, 4-19-2025 23:02 , Processed in 0.629388 second(s), 479 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2021, Tencent Cloud.

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