Gallery:模块:hidden

来自站长百科
Sunzz1985讨论 | 贡献2008年6月10日 (二) 17:21的版本 (新页面: = Hidden Items Module = Hide albums / items from the public. == Description == Adds option to hide albums or items in '''General''' tab of edit item. '''An anonymous user can visit the ...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航、​ 搜索

Hidden Items Module

Hide albums / items from the public.

Description

Adds option to hide albums or items in General tab of edit item.

An anonymous user can visit the direct URL to view the album or item.

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.

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.

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.

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.

For example, the anonymous user would visit:

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

Then the visitor can view the contents of that album, or follow direct links. e.g. by visiting links like:

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