Gallery: 模块:hidden:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
无编辑摘要
 
第1行: 第1行:
= Hidden Items Module =
= 隐藏项目(Hidden Items)模块 =
Hide albums / items from the public.
将相册/项目隐藏起来。


== Description ==
== 描述 ==
Adds option to hide albums or items in '''General''' tab of edit item.
在编辑项目的'''General'''标签中添加选项以隐藏相册或项目。


'''An anonymous user can visit the direct URL to view the album or item.'''
'''匿名用户可以访问直接URL来查看相册或项目。'''


After an anonymous user visits the album once, it is "unhidden" for them.  This means that they can visit the URL directly, then go up one level and see the album they just visited.
在某匿名用户访问相册一次之后,该相册就为"非隐藏"的了。这意味着他们能够直接访问URL,并上行一级来查看之前访问的相册。


:'''Note:''' If you want to hide an item / album and prevent that guests can access it with a direct URL, then use the normal Gallery item permissions. Just remove the view permissions from the Everybody group.
:'''注:''' 如果你希望以此你某项目/相册并且组织游客通过直接URL进行访问的话,请使用一般的Gallery项目权限。从所有人用户组中移除查看权限即可。


== Notes ==
== 注释 ==
Once you've unhidden an album it will be visible via Search and all other Gallery operations.  If you want to see what other users see, you have to log out and back in again.  Or if you're already a guest, you neeed to clear your cookies to get a new session.
一旦你暴露了某相册,它将会通过搜索以及其他Gallery操作而变得可见。如果你希望知道其他用户所能看到的内容,就需要登出并重新登入。或者如果你已是游客身份的话,就需要清楚cookies以获取新的对话。


== Example of use ==
== 实例 ==


Unlike Gallery1's hidden feature, with Gallery2 the anonymous user must visit the hidden album URL directly before they are able to view any items within it.
与Gallery1的hidden特点不同的是,有了Gallery2,匿名用户必须通过直接访问隐藏相册的URL才能查看其中的所有项目。


For example, the anonymous user would visit:
例如,匿名用户访问:


  <nowiki>http://example.com/gallery/hidden-album</nowiki>
  <nowiki>http://example.com/gallery/hidden-album</nowiki>


Then the visitor can view the contents of that album, or follow direct links. e.g. by visiting links like:
那么访问者就能查看该相册的内容或打开直接连接。如访问以下的链接:


  <nowiki>http://example.com/gallery/hidden-album/picture.jpg.html</nowiki>
  <nowiki>http://example.com/gallery/hidden-album/picture.jpg.html</nowiki>

2008年9月20日 (六) 15:17的最新版本

隐藏项目(Hidden Items)模块[ ]

将相册/项目隐藏起来。

描述[ ]

在编辑项目的General标签中添加选项以隐藏相册或项目。

匿名用户可以访问直接URL来查看相册或项目。

在某匿名用户访问相册一次之后,该相册就为"非隐藏"的了。这意味着他们能够直接访问URL,并上行一级来查看之前访问的相册。

注: 如果你希望以此你某项目/相册并且组织游客通过直接URL进行访问的话,请使用一般的Gallery项目权限。从所有人用户组中移除查看权限即可。

注释[ ]

一旦你暴露了某相册,它将会通过搜索以及其他Gallery操作而变得可见。如果你希望知道其他用户所能看到的内容,就需要登出并重新登入。或者如果你已是游客身份的话,就需要清楚cookies以获取新的对话。

实例[ ]

与Gallery1的hidden特点不同的是,有了Gallery2,匿名用户必须通过直接访问隐藏相册的URL才能查看其中的所有项目。

例如,匿名用户访问:

http://example.com/gallery/hidden-album

那么访问者就能查看该相册的内容或打开直接连接。如访问以下的链接:

http://example.com/gallery/hidden-album/picture.jpg.html
http://example.com/gallery/hidden-album/picture.jpg.html?g2_imageViewsIndex=1